2

Using the Azure API's, I am able to get the content of an attachment using:

GET https://dev.azure.com/fabrikam/_apis/wit/attachments/{id}?api-version=4.1

This assumes you know the guid (id) of the attachment you wish to download.

What I am trying to do is for a given workItem ID, get a list of ALL attachments (including the ID). Anyone know what the easiest way to achieve this is?

Dale K
  • 25,246
  • 15
  • 42
  • 71
dunkyduncs
  • 175
  • 1
  • 1
  • 8

2 Answers2

0

I find this Azure API may be helpful for you.

GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems?ids={ids}&api-version=4.1

For more details, you can refer to this doc.

Hannahwy
  • 101
  • 5
0

Try $expand=Relations in the Api-Url

E.g. GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems?ids={ids}&$expand=Relations&api-version=4.1

vtp
  • 1
  • 1