VSTS API:在当前迭代中创建错误 [英] VSTS API : create bug in current iteration

查看:108
本文介绍了VSTS API:在当前迭代中创建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够通过Powershell使用REST API在VSTS中成功创建错误.请参阅问题以了解一些背景故事.

但是如何指定它以在 current 迭代中创建错误?在提供路径之前,我是否必须找出当前迭代是什么?没有办法直接在当前迭代中直接创建它吗?

请注意,此问题与创建工作项API有关,而该问题提到解决方案

VSTS版本中没有此功能,解决方法是可以通过Web挂钩更新相关的工作项.

  1. 构建一个api项目(例如ASP.NET Web api)以更新每个工作项以生成ID(通过
  2. 指定您的API应用的网址.

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.

解决方案

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.

这篇关于VSTS API:在当前迭代中创建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆