Expand my Community achievements bar.

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

Getting a team assignment thru API call

Avatar

Level 3
When I try to call whom a task is assigned to via API it works when there is a single person assigned but not when there is a team assigned. When assigned to me specifically: I use this call: https://xxxx.my.workfront.com/attask/api/v7.0/task/5ae2307c005498705be21bffe35edbaa?fields=assignedT... and get this: { " data ": { " ID ": " 5ae2307c005498705be21bffe35edbaa " ," name ": " Audio R2 " ," objCode ": " TASK " , " assignedTo ": { " ID ": " 59b947da00eb2774ef2025ba88f56a1b " ," name ": " Randy Roberts " ," objCode ": " USER " } } } I use this call: https://xxxx.my.workfront.com/attask/api/v7.0/task/5ae2307c005498705be21bffe35edbaa?fields=assignmen... and get this: { " data ": { " ID ": " 5ae2307c005498705be21bffe35edbaa " ," name ": " Audio R2 " ," objCode ": " TASK " , " assignments ": [ { " ID ": " 5b578f8800c722d46efaacbb4f174c6c " ," objCode ": " ASSGN " } ] } } I use this call: https://xxxx.my.workfront.com/attask/api/v7.0/task/5ae2307c005498705be21bffe35edbaa?fields=assignedT... and get this: { " data ": { " ID ": " 5ae2307c005498705be21bffe35edbaa " ," name ": " Audio R2 " ," objCode ": " TASK " ," assignedToID ": " 59b947da00eb2774ef2025ba88f56a1b " } } But when I assign the task to a team, it always comes back null. "59b947da00eb2774ef2025ba88f56a1b" is me, so "assignedToID" works and "assignedTo" works if assigned to a single person. Does anyone know how to get the name of a team assigned to a task? Randy Roberts ZPA - Zimmerman Advertising LLC
Topics

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

3 Replies

Avatar

Level 10
There are two different fields (Individual Assignment like you've outlined here & Team Assignment). For the assigned Team ID it is 'teamID'. The name is under 'team:name'.

Avatar

Level 3
So I know when creating a report I can use "xxxxxx:name" to get a name rather than an ID but how would that look in an in-browser API call? Randy Roberts Zimmerman Advertising LLC

Avatar

Level 10
I haven't worked much with in-browser calls, but I would suspect it would be the same. It should still work.