azure-devops-rest-api

callbackurl while connecting to vso using oAuth

Deadly 提交于 2019-12-25 12:44:09
问题 I am trying to connect to VSO using oAuth. First step is to register our app and configure a call back url. I am creating a console application to test the connectivity. Please let me know how to configure the callback url. 回答1: Firstly, please take note that: Right now, it is only supported to register web application, it is impossible to register a console app. So, you need to have a web app first, you can download and use this sample project for a quick start: https://vsooauthclientsample

How to get work items for a specific team with wiql?

允我心安 提交于 2019-12-25 00:27:14
问题 I'm trying to get work items in any state for a specific PROJECT and TEAM with dev ops rest api. As confirmed in my old question, the backlog work item api won't do, because it doesn't return 'done' items. What's the best way to do that with wiql? I have issues in particular with filtering for a specific team. The web interface leads to a query with the @TeamAreas macro but I can't figure out how to translate it to wiql, as Visual Studio 2017 says that "the syntax of the query is not

Why can't I access the VSTS analytics API service even though I have sufficient permissions

回眸只為那壹抹淺笑 提交于 2019-12-24 19:03:42
问题 I try to make a call from a powershell script to the analytics API from my private agent, and I get the following error response: [error]Invoke-RestMethod : {"error":{"code":"0","message":"Using this service requires \"View Analytics\" permission on I checked my security settings for "View analytics" and it says 'Allow'. The PAT I've set my private agent up with has all scopes enabled. I can access this API through Postman using another PAT with authorization Basic. Also, if I change my

Edit VSTS Wiki page via VSTS API

荒凉一梦 提交于 2019-12-24 12:03:24
问题 I am trying to edit a VSTS wiki page via powershell and VSTS API and I am using this documentation as a reference. When I try to edit an existing page, I get the following error: Invoke-RestMethod : {"$id":"1","innerException":null,"message":"The page '<PAGE That I CREATED ALREADY>' specified in the add operation already exists in the wiki. Please specify a new page path.","typeName":"Microsoft.TeamFoundation.Wiki.Server.WikiPageAlreadyExistsException, Microsoft.TeamFoundation.Wiki.Server",

How to get parameter values from a test case on azure devops (former vsts) in C# tests?

自古美人都是妖i 提交于 2019-12-24 10:20:19
问题 I am trying to get the parameter values defined in a test case in Azure DevOps (former VSTS). My test case looks like this- Azure devops test case I am trying to get the values in a test method that looks like this- [DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase", "https://[companyName].visualstudio.com;[projectName]", "5843", // this is the test case number DataAccessMethod.Sequential), TestMethod] public void DataOverlapsBottomRowOfFilterFromTestParameter() { string

How to schedule an on-premise Azure DevOps build to run every 5 minutes?

∥☆過路亽.° 提交于 2019-12-24 00:27:32
问题 Never mind the rationale, I have a case where a build needs to run every 5 minutes. On-premise installation does not support schedules in the YAML. So, how do we do it? I can probably use the REST Api, but that sucks, because it seems either I create a one-off script or a script for very simple type of schedules. Building a reusable solution, that could be used in general for other builds seems to be involved. So, instead of concentrating on my business I need to go sideways and cover for the

TFS API Create Release with powershell

折月煮酒 提交于 2019-12-23 20:11:38
问题 I'm trying to queue a build and create a release using powershell. I'm able to successfully queue a build but unfortunately, the Continuous Deployment is not being triggered for the release. My hope is that I can do both of these in a powershell script that will allow me to release the application. I'm using TFS 2015 Update 3 I've been working from an article posted here: http://blog.nwcadence.com/vststfs-rest-api-the-basics-and-working-with-builds-and-releases/ In summary in performing the

Creating VSTS ServiceHooks (WebHooks) via Rest Api for work item created event fails. Please give a solution

爱⌒轻易说出口 提交于 2019-12-23 05:00:40
问题 My API Request is as URL : https://kogul-ceymplon.visualstudio.com/_apis/hooks/subscriptions?api-version=4.1-preview Method : POST Content: "application/json" of " {\"PublisherId\":\"tfs\",\"EventType\":\"workitem.created\",\"ResourceVersion\":\"1.0-preview.1\",\"ConsumerId\":\"webHooks\",\"ConsumerActionId\":\"httpRequest\",\"PublisherInputs\":{\"ProjectId\":\"d028a77b-50c4-4bdc-943d-6b072799b884\"},\"ConsumerInputs\":{\"Url\":\"https://myservice/newreceiver\"}}" Header : Bearer {accesToken}

How to call AZURE DEVOPS rest API in the water fall dialog built using C# BOT Framework SDK V4?

做~自己de王妃 提交于 2019-12-23 03:07:35
问题 I have web channel chat bot created through C# using BOT Framework SDK V4. It has multiple waterfall dialogs that do set of actions based upon option selected in the main dialog. In one of the dialog my requirement is user inputs some data and then using that I should create a Work Item of Type task in my AZURE DEvOps project for tracing purposes. I am successfully able to acquire the data from user but while creating WORK ITEM in devops I am facing problem. I have tried couple of things from

VSTS REST API to change security permissions on Release definition or Release definition environment

故事扮演 提交于 2019-12-23 02:21:19
问题 I cannot find any documentation referring to VSTS REST API to change security for Release Definition or Release Definition environment. I am trying to create an automation script to create a Release definition which will accept user list as a parameter and assign limited permission on the Release Definition and Release Definition environment. Is there any way of doing this? 回答1: There isn’t the REST API to change permission of release definition or release environment. I submit a user voice