Skip to content

Instantly share code, notes, and snippets.

@michaelklapper
Last active February 19, 2024 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelklapper/6270114 to your computer and use it in GitHub Desktop.
Save michaelklapper/6270114 to your computer and use it in GitHub Desktop.
TargetProcess REST API examples

Documentation

Company wide current TeamIterations including all stories with the amount of tasks =============== https://hostname.com/targetprocess/api/v1/TeamIterations/?include=[Team,Name,UserStories,Bugs,Velocity]&append=[Tasks-Count]&IsCurrent=1

Complex example

https://hostname.com/targetprocess/api/v1/TeamIterations/?include=[Project,Team,Name,UserStories[Id,Effort,Name],Bugs,Velocity]&append=[Tasks-Count]&IsCurrent=1

UserStories for the Searchperience Team grouped by TeamIterations =============== https://hostname.com/targetprocess/api/v1/Teams/4089/TeamIterations?include=[Name,UserStories] https://hostname.com/targetprocess/api/v1/Teams/4089/TeamIterations?include=[Team,Name,UserStories,Bugs,Velocity] https://hostname.com/targetprocess/api/v1/Teams/4089/TeamIterations?include=[Team,Name,UserStories[Id,Effort,Name],Bugs,Velocity] https://hostname.com/targetprocess/api/v1/Teams/4089/TeamIterations?include=[Team,Name,UserStories,Bugs,Velocity]&append=[Tasks-Count,UserStories-Count,Bugs-Count]

Getting the Next Sprint backlog ================= https://hostname.de/targetprocess/api/v1/Teams/4089/TeamIterations?include=[Name,UserStories[Id,Name,Effort,EffortToDo,EffortCompleted,Project[Abbreviation]]],Bugs,Velocity]&where=EndDate%20gt%20'2014-01-20'&take=2

Improved version "use valid date for 'EndDate' & 'StartDate'" ---------https://hostname.de/targetprocess/api/v1/Teams/4089/TeamIterations?where=EndDate%20gt%20'2014-01-20'%20and%20StartDate%20gt%20'2014-01-20'&orderby=StartDate&take=1&include=[Name,UserStories[Id,Name,Effort,EffortToDo,EffortCompleted,Project[Abbreviation]]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment