Search code examples
c#azure-devopswiql

Retrieving changesets form a work item programmatically


I need to try retrieve a list of changesets that are linked to certain work items and display info on them in the program. But I'm having a lot of trouble figuring it out.

I have been searching the internet extensively for 4 days and have come up empty handed. Is doing this even possible?

I have already tried using wiql http client but it seems to only be able to return work item information.


Solution

  • Use Get Work Item with $expand=relations. In this case, you receive all relations including changesets. Example:

    enter image description here