问题标签 [azure-devops-rest-api]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - VSTS:使用 Rest API 将子任务链接到场景
我已经创建了VSTS
使用 Rest API 的场景和任务。现在我正在尝试使用 Rest API 将任务链接到该特定场景。我已经看到了一些他们正在使用的代码逻辑,System.LinkTypes.Hierarchy-Forward
但我不确定如何在我的代码中适应它。有人可以帮我吗?
我已经使用JsonPatchDocument
方法创建了任务和场景。
git - 为 TFS 中已知开始和结束的所有分支定义策略
TFS 提供了通过其 REST API 定义分支策略的可能性。对于每个策略,如果确切的分支名称或分支名称的开头已知,则可以定义一个Git 引用范围,该范围可以正常工作。
还有一种方法可以定义一个策略,该策略会自动影响所有已知开始和结束的分支。例如/refs/heads/foo/*/bar
应该影响/refs/heads/foo/foo/bar
and /refs/heads/foo/bar/bar
,但不影响/refs/heads/foo/foo/foo
。
powershell - 在 Powershell 中更新 VSTS WorkItem 的正确 Invoke-RestMethod 语法是什么 - 构造包含 Windows 路径的 JSON 字符串
尝试使用 Invoke-RestMethod 更新现有 VSTS 工作项时,我不断收到
您必须在请求正文中传递有效的补丁文档。
这是我要传递的
身体扩大到
任何帮助将不胜感激!
c# - WorkItemLinks 上的 WIQL 查询
TFS API 实现了这个类:
<a href="https://i.stack.imgur.com/eu7my.png" rel="nofollow noreferrer">
如何使用 WIQL 查询和 TFS API 来获取自给定日期以来添加或更改了父/子链接的所有工作项?我怀疑使用 WorkItemLinks 表将是一个开始的地方,但我几乎没有找到关于提供的字段的文档。此外,重要的是要注意更改工作项链接不会影响工作项的更改日期字段。我怀疑这是因为链接有自己的更改/创建日期字段。我希望在平面列表视图中获取这些项目。我有什么选择?**
azure-pipelines - 如何将工作项与 Visual Studio Online 中的构建相关联?
当我使用 VS 2015 和 VSTS Online with Git 签入我的代码时,我可以将一个工作项与我应用到我的提交的评论相关联。
我可以在构建摘要页面上的相关更改区域中看到评论,并且它是相关的但上面的类别 - “关联的工作项”始终是“找不到此构建的关联工作项”。
这导致了一个问题,因为我想遵循本教程并将工作项与构建相关联,但脚本从未找到任何东西。
http://www.neovolve.com/2016/10/25/linking-work-items-to-vsts-vnext-builds/
在开始构建之前,我还尝试将错误工作项置于各种状态,例如已解决和已关闭,但我得到相同的输出:
有人可以解释我做错了什么吗?
tfs - TFS 2017 Extension on pull request - How to get data from the parent host?
I've created an extension in TFS2017. It's basically a tab to display the linked workitems with some details on the selected pull request.
The problem is that I'm unable to get the id and other data that are needed to use them as parameters in order to use call the method getPullRequestWorkItems() which basically gets the work items on the current pull request.
The method VSS.getWebContext() doesn't provide the needed data, and I've tried to do something like window.parent.location.href but this is not because I get error like securityError: Blocked a frame with origin from accessing a cross-origin frame.
Thanks
Edit:
I have installed the contribution guide extension to get the availabe context and configuration data but the configuration is empty:
Update:
I could solve this task using the getConfiguration() as suggested by Eddie - MSFT. This requires updating TFS to 2017.1RC2 if you are the extension running onprem.
tfs - 我们如何在 VSTS Widget 中显示忙碌指示符?
我正在创建一个 VSTS 小部件,它也有一个配置小部件。我想知道如何设置繁忙指示器,因为数据渲染需要一些时间。
来自 API: 它说明了有关 VSS.INIT 选项的内容...
但是我们已经将这个选项设置如下:
我们从来没有看到 UI 加载指示器。
请指教。
c# - TF400813: 资源不可用于匿名访问。需要客户端身份验证
我正在从事 CodedUI 测试自动化项目。VSTS
我正在开发一个框架,我试图在其中访问测试用例RestAPI
。我以前在一个 MVC 应用程序上工作过,在其中我做了同样的事情来从VSTS
使用RestAPI
.
现在的问题是我无法访问VSTS
. 每次我尝试访问时VSTS
,我都会遇到异常TF400813: Resource not available for anonymous access. Client authentication required
。
我正在使用相同的PAT token
. 我拥有团队项目所需的所有访问权限。我可以从浏览器访问我项目中的所有工作项。我已经尝试了下面线程中提到的所有选项,但仍然无法正常工作。
启动 Visual Studio 2015.3 时出现客户端身份验证错误,
我们将不胜感激。
以下是我从中获取数据的代码VSTS
:
visual-studio-2015 - TF401319: 分配给字段的规则评估失败
我们Tasks
在 VSTS 中使用RestAPI
. 到目前为止,我们的代码运行良好。我们在Task
专门创建时遇到了一个异常。我们能够创造Scenario
但不能Task
。下面是我们得到的异常。Exception: System.AggregateException: One or more errors occurred. ---> Microsoft.VisualStudio.Services.Common.VssServiceException: TF401319: Rule evaluation failed for field Assigned To.
任何人都可以提出任何修复或解决方法吗?