API to Retrieve Individual Resource Work Status
Work Status for each individual resource on a task can be retrieved as follows:
/api/task-resource/list-by-task/[taskGUID]?ModelProperties=WorkPercentCompleteType,User
It will return the Work Status Name, such as Not Started or Done, along with the First Name and Last Name of the resources assigned to the task.
-
Wes,,
This appears to work for one task. Is there a way to return the value for all tasks and resources in one pull?
Thanks...Dan
0 -
I noticed under the "Task" model, it contains search criteria for "isShowAllSummaryAndRegularTasks". Can this criteria be incorporated into the "Task-Resource" model? If the return data set is too large, maybe a date range could also be included.
Thanks...Dan
0 -
For all of the people assigned you can use this:
?modelProperties=default,WorkPercentCompleteType,TaskResources;TaskResource:default,User
That provides the additional non default parameters for WorkStatus and then the people assigned, plus the User property for all of the assignments.
There might be a better way to replicate the data in the Task Resource Report if that report looks more in line with what you want, splitting each task multiple times equal to the number of people assigned.We have requested a new API for a future release that could be better if the above method doesn't provide the data the way you need it.0 -
The following is a better example for the complete API path using a date filter example to test your data with a limited set of results.
/api/task/search?StartDateLocal=11/3/2019&EndDateLocal=12/07/2019&modelProperties=default,WorkPercentCompleteType,TaskResources;TaskResource:default,User
0 -
After doing further discovery on this, the statement you provided in your last post only gets the overall task status, not the individual task resource status on each task. That being said, I will have to wait until the release of the API update to the Task-Resource model.
Keep me posted as to when this will be available.
Thanks...Dan
0
Please sign in to leave a comment.
Comments
5 comments