I need to update a parent ticket status once the child ticket is set to resolved. I cannot figure out how to do that in the workflow. Any ideas?
I need to update a parent ticket status once the child ticket is set to resolved. I cannot figure out how to do that in the workflow. Any ideas?
There are a app that sync child to parent.
If you like to build it your self you need to do it using API.
You need to 2 web request nodes, one to get the parent ticket and the second to update the parent ticket.
/api/v2/tickets/cid]?include=related_tickets
With that you get the parent ticket ID, then https://api.freshservice.com/v2/#update_ticket_priority to update the ticket.
You need a separate workflow for the child ticket. To skip one web requests in that you could add the parent ticket number in a custom field.
You need a separate workflow for the child ticket. To skip one web requests in that you could add the parent ticket number in a custom field.
I did open a ticket with Support to get their help as well.
Hello,
I am trying to do similar things;
I want if the parent status is change to update child ticket with the same status,
I can see in automation an event “if status is changed from “ i put Any to Anye;
i added an action on child tickets but i am not able to get the parent status to make the update.
Any help is appreciated

I would be happy to jump on a call with you to talk through it if that is helpful.
Shannon
One thing to hit on - I know that you ended up going the API route, but
One option is closing the parent ticket automatically when all of the child tickets are closed. While I have it disabled, it is an option that I tested and it works as advertised.

If you want to check out the app, you can find it here: https://YourFreshServiceURL/a/admin/marketplace/gallery?route=app&id=12097
** Make sure to replace YourFreshServiceURL **
I found a way you don’t need the first webrequest to get the parent ticket ID.
Don’t know if this is a but but you can use {{ticket.predecessor_ticket.id_numeric}} to get the parent ticket ID.
You can get most fields from the parent ticket by adding “ticket.predecessor_” to the placeholder.
Like this
Current ticket
{{ticket.agent.name}}
Parent ticket
{{ticket.predecessor_ticket.agent.name}}
But you still need to use API/webrequest to update the parent ticket.
Great approach! Updating the parent ticket based on the child ticket status can really streamline workflow and ensure better tracking. Are you automating this process, or do you have a manual system in place? How do you handle cases where child tickets are delayed or dependencies cause issues with the parent ticket?"
Let me know if you'd like any tweaks!
So after digging into this as deep as possible i probably found the full set up.
Basicly its this and i still need to test it in our sandbox
To update a parent ticket status when a child ticket is set to resolved in Freshservice, you can use the Workflow Automator feature along with the Freshservice API. Here's how you can achieve this:
- Create a new workflow in the Workflow Automator that triggers when a ticket is updated
- Add a condition to check if the ticket is a child ticket and its status is changed to resolved
- Use the Freshservice API to update the parent ticket status. You'll need to add two web request actions in the workflow :a. First, get the parent ticket ID using the child ticket's information.
b. Second, update the parent ticket's status.
Here's a more detailed breakdown of the process:
Setting up the Workflow
- Go to Admin → Workflow Automator → New Automator → Ticket
- Add an event node for when a ticket is updated
- Add a condition node to check if the ticket is a child ticket and its status is set to resolved
API Calls
For the API calls, you'll need to use the following endpoints:
- To get the parent ticket ID:
text
GET /api/v2/tickets/{child_ticket_id}?include=related_tickets
- To update the parent ticket status:
text
PUT /api/v2/tickets/{parent_ticket_id}
Optimization Tip
You can optimize this process by using a placeholder to directly access the parent ticket ID without making an additional API call
text
{{ticket.predecessor_ticket.id_numeric}}
This placeholder allows you to get the parent ticket ID directly, eliminating the need for the first web request1.Remember to authenticate your API requests using your Freshservice API key as the username and any single letter (like 'X') as the password
Reply
Join the Community
Sign in to the Community
Social Login
Login for Freshworks Employees Login with LinkedInEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.