Questions tagged [azure-devops-rest-api]

Azure DevOps Services REST API (previously: Visual Studio Team Services REST APIs) is a set of APIs allowing management of Azure DevOps (formerly: Visual Studio Team Services) accounts as well as TFS 2015/2017/2018/2019 servers.

What's your goal? APIs to use:

  • Accounts and Profiles
    • Access user accounts or profiles
  • Build (2.0)
    • Automatically kick off a build
    • Get details from a completed build
    • Add a tag to a build
  • Widgets
    • Add a widget to a dashboard
  • Git
    • Get Git repositories
    • Add status to a commit
    • Get details/status for a pull request
    • Create a file (push)
  • Project and Teams
    • Create a project
    • Get a list of projects
  • Work Item Tracking
    • Get a list of work items
    • Create a work item
    • Update a work item
    • Add a link to a work item

More Information

1869 questions
0
votes
1 answer

Mapping user email to ADO user/descriptor

With a git commit, I have access to the author and committer's email and I wish to map that to a user in Azure DevOps. I've done some due diligence in searching this up but I cannot find anything concrete. I've basically reached the same state as…
0
votes
1 answer

Azure DevOps REST API: Getting work item predecessors and successors

How do I get a work item's list of predecessors and successors using the Azure DevOps REST API? I've found the API to list the items from a query and then get individual item details from there, but how do I get the predecessors and successors for…
axk
  • 5,316
  • 12
  • 58
  • 96
0
votes
1 answer

Azure Devops Test Plan ID not found using API

I am attempting to locate the test point ID's associated with test cases in my test plan. I can clearly see the test plan/test suite #'s in the UI, yet when I make the call to get the test points I receive an error that my test plan is not…
Jason
  • 41
  • 8
0
votes
1 answer

Add work item to board column via TFS REST API

I am using the TFS 2018 Rest API to create Work Items. I can create a Work Item, but I wanted it to go to a specific column on the board. I tried to pass the following parameter when I will create a Work Item, to configure the column: { "op":…
Wesley
  • 245
  • 6
  • 13
0
votes
1 answer

check "Allow all pipelines" through REST API Powershell script

I am attempting to enable the "Allow all pipelines" through the Azure DevOps Rest API: $uri = "https://dev.azure.com/**/**/_apis/pipelines/pipelinePermissions/endpoint/" + $ID + "?api-version=5.1-preview.1" $Allowpipelines = "[{ …
0
votes
1 answer

How to get Releases Pipelines pre-deployment gates status through REST API in Azure DevOps

I am using Azure DevOps (ADO) REST APIs to build dashboards on Power BI. I wanted to query whether the releases pipelines of all projects in my organization have pre-deployment gates of "SonarCloud Quality Gate status" by using the REST APIs…
rick
  • 423
  • 6
  • 17
0
votes
1 answer

How to get a list from all work items from a specific board in TFS API without ID?

I'm using TFS and I would like to get all work items from a specific board. This is how I'm getting the board atm: https://myTFSLink.com/tfs/TPC/ProjectName/MY-BOARD-NAME/_apis/work/boards?api-version=5.1 But nothing about stories/workItems are…
ncesar
  • 1,592
  • 2
  • 15
  • 34
0
votes
1 answer

How do I give Permissions using Azure DevOps Server Rest APi

https://learn.microsoft.com/en-us/rest/api/azure/devops/security/?view=azure-devops-server-rest-5.0 https://learn.microsoft.com/en-us/rest/api/azure/devops/security/access%20control%20entries?view=azure-devops-server-rest-5.0 Hi there, I'm having…
0
votes
1 answer

TFS 2015 Export collection all projects source code

I need some help with how to clone all projects in my TFS 2015 (Update 3) collection at once (git). I found this powershell script below for a newer version, and I tried changing to API version from 4.0 to 2.0 but then it gets the error "Method…
Brent Kilboy
  • 403
  • 4
  • 14
0
votes
1 answer

How to find out: Are all commits in a given branch covered by a pull request?

our internally used development process demands that we formally prove that all commits that were pushed are covered by a review (=pull request). I know that if we would have enabled branch protection since the beginning of existence of a repo and…
Marko
  • 929
  • 9
  • 27
0
votes
1 answer

Issue while using Cherry-pick api using PRid

I am trying to use the Git-Cherry API, in power shell to automate the process of cherry-picking a PR by its PRid. $Body = @{ "generatedRefName" = "refs/test"; "ontoRefName" = $BranhcName; "repository" = $RepoName; "source" = $PRid #Prid is an…
0
votes
1 answer

How can I get parent branch detail in Microsoft VSTS API when I have only Pull request I'd

I am working on patch release. I am getting change list from vsts using Microsoft VSTS API. I have 3 branches like A -> B -> C. A is base branch and b is created sub branch from A and c is created sub branch from B. So whatever changes I made in A…
Manu
  • 7
  • 1
  • 4
0
votes
1 answer

Get iteration, team, project from a work item in azure devops api

I have successfully retrieved work items from the api. I can also retrieve iterations/teams/projects etcetera from the api. My issue is that I have work item objects that I want to reference to iterations/teams/projects. I have not found a way to…
Chris Hayes
  • 3,876
  • 7
  • 42
  • 72
0
votes
1 answer

Build Strapi on Azure Windows WebApp returns 500 error

I deployed Strapi API on Azure (Windows IIS). I do not get any error under deployment. I used this way to deploy https://github.com/youkou2/Strapi-On-Azure-WebApp When I start the site https://oskogencms.azurewebsites.net I get 500 error (see image)…
0
votes
1 answer

Azure DevOps VssConnection - How to tell if the server is hosted or on premises?

Using VssConnection (or something else) is there a way to tell if the server being connected to is on premises or an hosted by Microsoft (i.e. Azure DevOps Service)? My research so far says that if the ServerType GUID is…