REST call to get all tasks in your VSTS account

This time, a small and simple post. I was working on a solution to get all tasks used in multiple build definitions. When you get the Build Definition with the REST API, you see a reference to the tasks by it’s GUID. But the displayname, group etc, is not displayed there.

There is no documentation (yet) to get an overview of all the tasks installed, so that’s hard. But after a quick chat with the Product Team this is perfectly possible with the REST API as well.

Just call https://<account>.visualstudio.com/_apis/distributedtask/tasks/ and you are all good !

Hope this helps!

Advertisements

Comments are closed.

%d bloggers like this: