If you you are creating child tickets with the type incident and want to have the parent ticket also be the problem ticket, you can use the following trigger/target to update the Problem ID with the Parent ticket ID. This will allow you to take advantage of Zendesk's built in features to comment and solve all children ticket with one bulk action. Learn more about Zendesk's Problem/Incident functionality here.
Target Configuration
Settings > Extensions > Add Target > Create HTTP Target
- Title: "MPM-Custom-Update problem ID with parent ticket ID"
- URL: https://youraccount.zendesk.com/api/v2/tickets/{{ticket.id}}.json
Replace "youraccount" with your actual Zendesk subdomain. - Method: Put
- Content Type: JSON
- Basic Authentication: Enabled (checked)
- Username: admin@domain.com/token (this is your Zendesk admin email followed by /token)
- Password: Your Zendesk API Key (API > Add New Token)
Trigger Configuration
Settings > Triggers > Add Trigger
- Conditions:
- Ticket is... Updated
- Type is... Incident
- Tags contains... at least one of the following... mpm_child_ticket
- Tags does not contain... "incident_linked" (this will ensure the trigger will not keep firing unexpectedly)
- Under Actions, select/enter the following:
- Add Tags: incident_linked
- Notifications: Notify target
Target: "MPM-Custom-Update problem ID with parent ticket ID"
JSON Body:
{
"ticket": {
"problem_id": "{{ticket.external_id|remove:'child_of_'}}"
}
}
Comments
0 comments
Please sign in to leave a comment.