Expand my Community achievements bar.

The next phase for Workfront Community ideas is coming soon. Learn all about it in our blog!

The assignedToID Always Returns Null In API

Avatar

Level 1
Hey guys first post here I'm attempting to retrieve the all task that are within a set of project:statuses, and that are also in a specific set of teams while doing so I've noticed that the assignedTo of the assignedTo object within the Task object always returns null am I missing something here below is currently my query that I'm using. https://vestcom.my.workfront.com/attask/api/v9.0/task/search?fields=*,assignedTo,team,project:name,p... Rio Stevenson Vestcom
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

API
2 Replies

Avatar

Level 10
I'm actually confused with the number of &project:status you have that might be conflicting but if your results are showing, then maybe it's alright. The rule of thumb for me is that after the search?, I put in all the criteria of the search eg search?project:status=CUR... and then &fields at the end with &apiKey. Now to troubleshoot, I would just do a specific search eg search?project:status=CUR&teamID=xxxcvzvzdsfaf5&fields, assignments &apiKey. Note, that the TASK fields list already includes assignedTo in the api explorer so no need to add to the fields list. If the specific search shows an assignedTo for those specific tasks and projects, you can start adding to your search string and see whether one or another of your search criteria breaks the api call. Also, as I was confused with the number of search criteria on your api call, you might want to do an OR value. See thread here. "https://community.workfront.com/discussions/community-home/digestviewer/viewthread?MessageKey=5879c4fe-c01c-4b60-807d-fcb1304a2031&CommunityKey=aaafaff0-5e4e-4e38-8903-f1f990935567&tab=digestviewer#bm5879c4fe-c01c-4b60-807d-fcb1304a2031">https://community.workfront.com/discussions/community-home/digestviewer/viewthread?MessageKey=5879c4... Regards. Polly Co

Avatar

Level 10
Regarding searches for multiple project statuses, team names etc, you don't have to use an 'OR'. You can just use &fieldname_Mod=in i.e. &project:status=DED&project:status=ONH&project:status=REJ&project:status_Mod=in Alternatively you can use fieldname_Mod=notin for the reverse. 'OR' is handy if you want to join together two or more sets of parameters. I.e. A&B&C OR C&D&E Cheers David Cornwell