I’m trying to find a way to create a new ticket and have it get added as a child ticket to an existing ticket. I know i can GET the parent\child data from the API, but cannot figure out how to add it using a PUT or POST command. Is there a way to do this?
Hi
When checking an existing ticket with a parent/child relationship, you'll see the parent ticket ID listed in the properties. To attach an existing ticket as a child to another, you simply need to replicate this structure in a PUT call.
Alternatively, you can only create a child ticket directly from the parent ticket using this API: https://api.freshservice.com/#create_child_ticket
Best regards
Daniel
Hi
When checking an existing ticket with a parent/child relationship, you'll see the parent ticket ID listed in the properties. To attach an existing ticket as a child to another, you simply need to replicate this structure in a PUT call.
Alternatively, you can only create a child ticket directly from the parent ticket using this API: https://api.freshservice.com/#create_child_ticket
Best regards
Daniel
something like this ?
{
"related_tickets": {
"child_ids": d
748
]
}
}
Then I get this:
{
"description": "Validation failed",
"errors": r
{
"field": "related_tickets",
"message": "Unexpected/invalid field in request",
"code": "invalid_field"
}
]
}
Maybe you have another idea.
Maybe you have another idea.
Project has it’s own endpoint for relating tickets/change etc to a project task and it works great.
Something like that with the rest of the modules would be great.
That's correct; the Freshservice API only allows you to create new child tickets and does not provide a feature that would allow you to link two existing tickets in a parent/child relationship. I have confirmed this with Support, who have informed me that there is currently no option to link existing tickets.
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.