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

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: