cancel
Showing results for 
Search instead for 
Did you mean: 

REST - how to get a list of subtasks for a particular task?

augustus
Champ in-the-making
Champ in-the-making
I've found among legacy REST API resource LegacyTaskResource.class which does what I need but it's deprecated. How to get list of subtasks for a task in another way?
8 REPLIES 8

augustus
Champ in-the-making
Champ in-the-making
Any help would be appreciated.

trademak
Star Contributor
Star Contributor
You're right, we missed that one somehow. I'll add a sub task REST service today.

Best regards,

augustus
Champ in-the-making
Champ in-the-making
Thanks!

trademak
Star Contributor
Star Contributor
It's committed to master this morning. So now you have a service on runtime/tasks/{taskId}/subtasks

Best regards,

barula
Champ in-the-making
Champ in-the-making
Hi Tijs, I can't find either any method for creating a sub task for a given task in the rest api. I'm on the 5.14 version.
Thanks in advance

trademak
Star Contributor
Star Contributor
When creating a task you can specify a parentTaskId and this way it will create a sub task for the specified task id.

Best regards,

barula
Champ in-the-making
Champ in-the-making
Hi tijs, I know the way of doing that from Java… I need to do it from REST, it's possible?
If it's possible, please share the path for doing so, because in the User Guide is not available.

trademak
Star Contributor
Star Contributor
I was referring to the REST API actually. It's a call to:

POST /runtime/tasks

And then pass along a parentTaskId in addition to the other task properties.

Best regards,