azure-devops-rest-api

Getting the Branch ID for Accesscontrol

爱⌒轻易说出口 提交于 2021-02-19 05:39:05
问题 I am trying to restrict the permissions for a specific AD group on a branch level. Previously I have asked the Microsoft Azure DevOps team if they had any endpoint URI REST API for this request, but the response that I have got was that it was not currently available. However, I have managed to get the API using the chrome developer tool, which was https://dev.azure.com/{organization}/_apis/accesscontrolentries/{namespacetoken}?api-version=5.1 Then, I am making the POST request using this

Is there a way to get the amount of lines changed in a Pull Request via the Dev Ops Service REST API?

妖精的绣舞 提交于 2021-02-19 04:41:26
问题 I am currently doing my thesis and analyzing the behavior for code reviews. For this I want to know the size of the pull request that is reviewed. The rest of the information for example authors, reviewers, times etc. I got already by calling the rest API. However I cannot seem to find a way to get the amount of lines changed in each file, or a total number (which is also sufficient). I have browsed the documentation and found some ways to get amount of files changed, see https://docs

Best approach to get count of workitems state transitions?

雨燕双飞 提交于 2021-02-17 07:16:46
问题 I need to create a dashboard widget for Azure DevOps that shows number of work items of a specified type, that transitioned from one state to another. It looks like the Updates endpoint is my best bet, but that means that I would have to iterate over all of the updates of workitems for the specified type and then determine if it contains the state transition I'm looking for, e.g. Closed to Open. https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/updates/list?view=azure-devops-server

Get a list of tasks through rest api in azure devops

痞子三分冷 提交于 2021-02-15 07:42:13
问题 I'm trying to get a list of tasks which are completed in particular project in Azure DevOps. I want to use Azure DevOps's REST api to use this list in Jenkinsfile. Is it possible? So far i've been able to get status of one-particular task (so ID needs to be specified) so it doesn't work for me very well. I also experimented with queries and i've been able to create query in ADO which list tasks that are in "Done" state but i can't find a way to get query result through REST api to Jenkinsfile

Azure DevOps REST API to create a release definition

孤者浪人 提交于 2021-02-11 16:52:16
问题 I'm trying to create a release definition by using Azure DevOps REST API. I've created a json file which has configuration details for the request. I'm getting the below error, while creating the release definition. { "$id": "1", "innerException": null, "message": "Workflow of deploy job 'Run on the agent' in release pipeline stage 'development' is invalid. Add valid tasks and try again.", "typeName": "Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException,

Azure DevOps REST API to create a release definition

人走茶凉 提交于 2021-02-11 16:51:29
问题 I'm trying to create a release definition by using Azure DevOps REST API. I've created a json file which has configuration details for the request. I'm getting the below error, while creating the release definition. { "$id": "1", "innerException": null, "message": "Workflow of deploy job 'Run on the agent' in release pipeline stage 'development' is invalid. Add valid tasks and try again.", "typeName": "Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException,

Get the list of skipped tasks on Azure DevOps Pipeline

给你一囗甜甜゛ 提交于 2021-02-11 15:51:55
问题 Is there a way by which we can get the list of skipped tasks from the build? For example, I have 2 tasks that run conditionally only based on external factors. So how can I see, whether the tasks were skipped or actually ran from Azure DevOps REST API? I need to trigger another build conditionally based on the above factor. Any help will be appreciated! 回答1: You should look into the Build Timeline REST API. If you issue the following GET request: GET https://dev.azure.com/{organization}/

Get the list of skipped tasks on Azure DevOps Pipeline

北城以北 提交于 2021-02-11 15:49:06
问题 Is there a way by which we can get the list of skipped tasks from the build? For example, I have 2 tasks that run conditionally only based on external factors. So how can I see, whether the tasks were skipped or actually ran from Azure DevOps REST API? I need to trigger another build conditionally based on the above factor. Any help will be appreciated! 回答1: You should look into the Build Timeline REST API. If you issue the following GET request: GET https://dev.azure.com/{organization}/

Run Azure DevOps pipeline via REST API with queue time variables

独自空忆成欢 提交于 2021-02-11 13:32:47
问题 I have Azure DevOps pipeline with set of input variables which supposed to be modified during queue time. According to documentation and this post if values of pipeline variables will be changed during pipeline queue, they cannot be defined in the pipeline YAML definition, but using UI Variables panel and Variables tab in Trigger page. If I am going to trigger my pipeline with Azure DevOps REST API, what is the correct approach to define them or do I need to do this? Should I also use

In TFS (or ADO) is there an API call to link a Team to an Area Path?

别等时光非礼了梦想. 提交于 2021-02-11 12:25:53
问题 We're automating our TFS Team/Board creation and found that there is an API to create a Team and an API to create an Area Path, but not one to link the two. Basically we're looking for something that acts as the ‘Create an area path with the name of the team.’ check box in the attached picture.Screenshot Here's the code for our Team post: $azdoURI = https://prd-ourCompanyName/tfs/ourOrg/_apis/projects/ourProject/teams?api-version=5.0" $requestBody = @{ name = "$boardName" } $jsonRequestBody =