Browse Guides

Runbook: Update Status of Child Tickets
Reading mode
Copy Link
Link Copied!
Print
Feedback
This guide has multiple versions available:
<style>p { margin: 0; }span.fr-emoticon.fr-emoticon-img { background-repeat: no-repeat !important; font-size: inherit; height: 1em; width: 1em; min-height: 20px; min-width: 20px; display: inline-block; margin: -0.1em 0.1em 0.1em; line-height: 1; vertical-align: middle; } span.fr-emoticon { font-weight: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; display: inline; line-height: 0; } blockquote { border-left: solid 2px #5e35b1; color: #5e35b1; margin-left:0; padding-left:5px;}blockquote blockquote{ border-color: #00bcd4; color: #00bcd4;}blockquote blockquote blockquote{ border-color: #43a047; color: #43a047;} table.grid{ border-collapse: collapse;} table.grid td, table.grid th { border: 1px solid #ddd;} .fr-fic.fr-dib{ display: block; margin: 5px auto;}.fr-fic.fr-dib.fr-fir{ text-align: right; margin: 5px 0 5px auto;}.fr-fic.fr-dib.fr-fil{ text-align: left; margin: 5px auto 5px 0;}.fr-fic.fr-dii{ float: none; margin: 5px auto;}.fr-fic.fr-dii.fr-fil{ float: left; margin: 5px auto;}.fr-fic.fr-dii.fr-fir{ float: right; margin: 5px auto;}img.fr-dib.fr-fir { margin-right: 0; text-align: right;}img.fr-dib.fr-fil { margin-left: 0; text-align: left;}img.fr-dib { margin: 5px auto; display: block; float: none;}img.fr-bordered { box-sizing: content-box; border: solid 5px #CCC;}img.fr-shadow { box-shadow: 10px 10px 5px 0px #cccccc;}img.fr-rounded { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;}</style><style> p { margin: 0; } span.fr-emoticon.fr-emoticon-img { background-repeat: no-repeat !important; font-size: inherit; height: 1em; width: 1em; min-height: 20px; min-width: 20px; display: inline-block; margin: -0.1em 0.1em 0.1em; line-height: 1; vertical-align: middle; } span.fr-emoticon { font-weight: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; display: inline; line-height: 0; } blockquote { border-left: solid 2px #5e35b1; color: #5e35b1; margin-left: 0; padding-left: 5px; } blockquote blockquote { border-color: #00bcd4; color: #00bcd4; } blockquote blockquote blockquote { border-color: #43a047; color: #43a047; } table.grid { border-collapse: collapse; } table.grid td, table.grid th { border: 1px solid #ddd; } .fr-fic.fr-dib { display: block; margin: 5px auto; } .fr-fic.fr-dib.fr-fir { text-align: right; margin: 5px 0 5px auto; } .fr-fic.fr-dib.fr-fil { text-align: left; margin: 5px auto 5px 0; } .fr-fic.fr-dii { float: none; margin: 5px auto; } .fr-fic.fr-dii.fr-fil { float: left; margin: 5px auto; } .fr-fic.fr-dii.fr-fir { float: right; margin: 5px auto; } img.fr-dib.fr-fir { margin-right: 0; text-align: right; } img.fr-dib.fr-fil { margin-left: 0; text-align: left; } img.fr-dib { margin: 5px auto; display: block; float: none; } img.fr-bordered { box-sizing: content-box; border: solid 5px #CCC; } img.fr-shadow { box-shadow: 10px 10px 5px 0px #cccccc; } img.fr-rounded { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; } </style><p><strong>In this guide we will cover:</strong></p><p><strong>- Creating a Runbook to Update Child Statuses</strong></p><p><br></p><p><br></p><p><strong id="isPasted"><span style="font-size: 14pt;">Creating a Runbook to Update Child Statuses</span></strong></p><p>One of the useful functions of runbooks is updating the child tickets that are attached to the parent, it can be done through an iterative runbook using a Halo API Action. The finished Runbook will look like this.</p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjRkNWYxZjQ5LTkxZGMtNGUzMy05YzRjLWFkZWZlYjU2MmQwYyJ9.0B2bsV3anEM4OJ6qAm6iOKWogSr0kk2DAD0EEssYJms" class="fr-fic fr-fil fr-dib" width="1219" style="width: 1221px; height: 466.081px;" height="466"></p><p><strong><span style="font-size: 10pt;">Fig 1. The Finished Runbook.</span></strong></p><p><br></p><p>To get started you can do method 1 which is a get on the parent ticket ID and the output variable will be the array of child tickets.</p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNhNzMyYTQ5LWI3ZjMtNDY0Mi1iYWVjLTgwMjg1ZjY3N2NjMyJ9.u6AplvaRL6CiAVFSCUaWgXHBke5S_33odBAeTm-7xhs" class="fr-fic fr-fil fr-dib" width="1216" style="width: 1218px; height: 280.271px;" height="280"></p><p><strong><span style="font-size: 10pt;">Fig 2. Getting the Array of Child Tickets.</span></strong></p><p><br></p><p>Now that we have the array, we want to iterate through the ticket ID&#39;s of the child tickets, so that we can update each individual status of the child tickets.</p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVhZmI4MDc0LWQzZjEtNDgwOS1hYTcxLWUyZWYxNWVkMzE3NSJ9.m3v_wCBKh2m0i3-O2GZNn1M2wIX1PwFVn7FQNWHB1rg" class="fr-fic fr-fil fr-dib" width="1034" height="789"></p><p><strong><span style="font-size: 10pt;">Fig 3. Getting the ID of the Child Ticket.</span></strong></p><p><br></p><p>Next we need to update the child tickets, based off of the current ID in the iteration. The status ID shown in the update action is for the &quot;Updated&quot; status to be set on the Child tickets.</p><p><br></p><p><strong><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImM4NTIxMjA5LTVjMDQtNGY0Yi04MDMwLWUyYTliZGY1MDE4MCJ9.V4Yzu395j7pmyFZHHeoLp4AJ5U40ZJPx9GEMeMBiufA" class="fr-fic fr-fil fr-dib" width="731" height="515"></strong><strong><span style="font-size: 10pt;">Fig 4. Updating the Status if the Child Tickets.</span></strong></p><p><br></p><p>This iteration step is the one that will be used to move to the next iteration of the array.</p><p><br></p><p><strong><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjgzNGEzNzkzLTRkNzYtNGIyNS1iMDRkLTk1NmQzZmRlNTVlYiJ9.1WWrjDdRhd5aFhcbCCvNiq2QNXx7qBfFzGjUXr0bo3A" class="fr-fic fr-fil fr-dib" width="1202" style="width: 1204px; height: 627.392px;" height="627"></strong><strong><span style="font-size: 10pt;">Fig 5. Going to the Next Iteration or Finishing the Iteration of the Array.</span></strong></p><p><br></p><p>To use this in an action, we can set the system use to &#39;Send Webhook/Queue Integration Runbook&#39; and then choose your desired runbook that will automatically run when this action is triggered.</p><p><br></p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjkwMjAzYWYzLThiOWItNDIwMi04NTVjLTlhZjIwMWI1ZmE5NyJ9.P6A0wucQjCjwKOx4QXWLnbFtCoHkrV3xvJ4LsCNFyq0" class="fr-fic fr-fil fr-dib" width="801" height="781"></p><p><strong><span style="font-size: 10pt;">Fig 6. The Action used to Trigger the Runbook.</span></strong></p>
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.