0
votes

I am able to successfully create a bug in VSTS using REST API via powershell. See this question for some back story.

But how do I specify it to create the bug in the current iteration ? Do I have to find out what is the current iteration prior to providing the path ? Is there no way to just directly create it in the current iteration ?

Please note that this question is about Create Work Item API, whereas the question mentioned here is about the Iteration API.

1
Actually those are two different questions. The other question is asking about the List Iterations API whereas this one is asking about the Create Work Item API.dparkar

1 Answers

0
votes

There isn’t such feature in VSTS build, the workaround is that you can update the related work item through web hook.

  1. Build a api project (e.g. ASP.NET web api) to update work item per to build id (Get build’s work item through Get Build Work Items Refs rest api)
  2. Create a web hooks with build completed event, set Failed status in Filters
  3. Specify that url of your API app.