cancel
Showing results for 
Search instead for 
Did you mean: 

REST query task by ID

mhanrahan
Confirmed Champ
Confirmed Champ
I'm working on a system that can filter a list of tasks based on a number of possible criteria, such as Task ID, Task Name, Assignee or so on.

I've found that for most of these criteria can use the POST /service/query/tasks action, however I cannot use that action to filter based on the task ID.  For the task ID, I need to use GET /service/runtime/tasks/{id}. 
Having them separate is fine, however using the GET action I will have to retrieve the variables separately using GET /service/runtime/tasks/{id}/variables?scope=local, whereas with the POST action I can simply include the option "includeTaskLocalVariables"

Would it be possible for the behavior of these calls to change so that either the /service/query/tasks action to allow filtering by the task ID or for the GET action to have a query task to include something similar to includeTaskLocalVariables?

This would drastically reduce the amount of code for me to maintain for integration via the REST interface.
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Allowing to filter a task-collection based on the unique resource-ID doesn't make sense. We can add the includeTaskLocalVariables and includeProcessVariables in the GET of a single task… Can you create a JIRA-issue for this?

mhanrahan
Confirmed Champ
Confirmed Champ
Thanks very much for this.  The JIRA issue is: http://jira.codehaus.org/browse/ACT-1922