[hfe_template id='1680'] Runbook: Update Status of Child Tickets | HALO

Runbook: Update Status of Child Tickets

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:

Fig 1. The Finished Runbook

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:

Fig 2. Getting the Array of Child Tickets

Now that we have the array, we want to iterate through the ticket ID's of the child tickets, so that we can update each individual status of the child tickets:

Fig 3. Getting the ID of the Child Ticket

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 "Updated" status to be set on the Child tickets:

Fig 4. Updating the Status if the Child Tickets

This iteration step is the one that will be used to move to the next iteration of the array:

Fig 5. Going to the Next Iteration or Finishing the Iteration of the Array

To use this in an action, we can set the system use to 'Send Webhook/Queue Integration Runbook' and then choose your desired runbook that will automatically run when this action is triggered:

Fig 6. The Action used to Trigger the Runbook

[hfe_template id='2416']