1,979
questions
0
votes
1
answer
46
views
Azure DevOps REST API: Permissions Not Updating Despite Successful Response
Question:
I am trying to update permissions for a pipeline in Azure DevOps using the REST API, but although I get a 204 No Content response, the permissions are not actually being applied or updated.
...
0
votes
1
answer
59
views
Azure DevOps REST API - Update pre-deployment artifacts
I'm trying to add a new branch to the target environment, specifically UAT, as part of the pre-condition artifacts. However, when I run the code, the release definition isn't displaying—it's just ...
0
votes
1
answer
42
views
Powershell WebRequest for DevOps API to retrieve Work Item doesn't include "Relations" in the response
I have a strange behavior when I perform a DevOps API request in Powershell to retrieve a Work Item with its relations.
I found a bunch of other posts talking about this but I didn't find my scenario.
...
2
votes
1
answer
70
views
getting linked workitem in azure devops using python
I'm using Azure Devops module of python to get the linked workitems to the userstory in Tree structure(parent,child link)
I tried this code
from azure.devops.connection import Connection
from msrest....
0
votes
1
answer
48
views
how to remove build artifact from Azure DevOps pipeline or provide folder exchange between jobs?
Is there any way to remove Build Artifact produced in one job of the pipeline, like:
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Agent.BuildDirectory)/${{ parameters....
0
votes
1
answer
80
views
Azure DevOps REST API Downloading an NPM artifact
I'm trying to download a NPM artifact from an Azure DevOps feed within the pipeline
As for any other tasks I do this over python using a syntax similar to the following:
opener = urllib.request....
0
votes
1
answer
57
views
Remove Direct access from Azure DevOps organization's access level through an API or a Script
I need help with Removing Direct access from Azure DevOps organization's access level through an API or a Script, with the select feature we are only able to remove only 100 users but we have more ...
0
votes
1
answer
192
views
How to retrieve a List of Pipelines in azure data factory for a Specific Branch?
I need to retrieve a list of pipelines in Azure Data Factory (ADF) and are associated with a specific branch in a specific repository within Azure DevOps.
Azure DevOps Pipelines
Here’s what I’ve tried ...
0
votes
1
answer
90
views
How to add users to a particular repository using API
I am struggling in going through the API documentation for Azure devops on how to add a user to a particular repo using Rest API with read and write access to a git repository. Please guide me on this....
1
vote
2
answers
70
views
Azure Devops REST API - publish build artefacts from local
I'm trying to publish some files as build artefacts in an Azure DevOps build pipeline with PowerShell using this documentation:
https://learn.microsoft.com/en-us/rest/api/azure/devops/build/artifacts/...
0
votes
1
answer
51
views
Why does queued build only run after task cancelled/fails?
I have a PowerShell script running in an Azure DevOps pipeline. This script makes an API call to queue a build:
$Uri = 'https://dev.azure.com/{MY ORG}/{MY PROJECT}/_apis/build/builds?api-version=5.0'
...
0
votes
1
answer
50
views
How to retrieve user's PAT to cast a vote
We have an app that acts like a layer in-between Azure Repos and the users. We are using a PAT of a service account, everything works properly except the voting, because we cannot vote on behalf of ...
-1
votes
1
answer
69
views
I have extracted Test case Json from one ADO organization but dont know how to insert it in new organization
I have extracted Test case Json from one ADO organization but how to insert it in new organization , i have added test case and suits it's created in new org. But for test case the response i received ...
0
votes
1
answer
73
views
how to give the pipelines permanently access to new securefiles uploaded?
We are using azuredevops securefiles to update the secret values in Azure keyvault and created the same. we are using parametrized value for our securfile as we have to use this between different ...
0
votes
0
answers
42
views
Cascade picklist workitem field in Azure Devops Server 2022
We were trying to achieve cascaded picklist feature to our work item, so that we can use the Work item for our support request from end users where want to achieve support hierarchy as provided in ...
-1
votes
1
answer
49
views
Azure Workitems Azure REST API POST Request - 503 Service unavailable 0x80070057, Invalid request
I'm trying to programmatically create a issue card in Azure boards using python script.
I'm using a PAT (personal access token).
headers = base64encodedPAT
headers[Content-Type']='application/json-...
0
votes
1
answer
47
views
Azure DevOps Branch Policies
I have a question on branch policies in Azure DevOps, Can we get Pipeline status from Repo B to the branch policies of Repo A? I tried setting it directly and it didn't work as expected and can we ...
0
votes
1
answer
45
views
Azure DevOps api command Get Work Item - Not able to use the $expand parameter : The value .. is not valid for Nullable
when I would like to expand the relations / any of the expand options in Azure DevOps 'Get WorkItem' api call, see documentation
https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/...
0
votes
1
answer
56
views
how to know if I can contribute to a branch with Azure rest Api?
with Azure Devops REST API, I would like to know if I have the permission to contribute to a specific branch, I found the request to know if I have a permission but it only work on a repos, but not on ...
0
votes
1
answer
70
views
Some ADO build pipelines show all of the work items in linked items and others only show relevant items. Looking for ideas
I am trying to update linked work items with build statuses in ADO.
I created a script that gets linked items from RestApi using the build.id and posts needed updates. Script works fine. My problem is ...
0
votes
1
answer
149
views
How to grant permissions to call Azure DevOps REST API using System.AccessToken?
I want to call the Azure DevOps REST API's Test Suites - Create endpoint from an Azure DevOps Release pipeline.
I am doing this from a PowerShell task and I am using System.AccessToken. When I try to ...
0
votes
2
answers
89
views
Troubleshooting Inconsistent Work Item Retrieval in Azure DevOps Release API
I have an Azure DevOps API for fetching the releases between the start date and the end date
https://vsrm.dev.azure.com/${organization}/${project}/_apis/release/releases?minCreatedTime=${startDate}&...
-1
votes
1
answer
111
views
Create Service end point using Rest API AD Server 2020
I tried to create a Service endpoint in Azure DevOps Server 2020 using Rest API.
The Server endpoint is created only when PAT has full access. If I choose customised scopes along with Service ...
1
vote
1
answer
60
views
AzureDevops API: Image not uploaded
I use the method
POST
"https://dev.azure.com/{organization}/{project}/_apis/wit/attachments?uploadType=Simple&fileName={filename}&api-version=5.0"
headers
headers = {
&...
1
vote
1
answer
80
views
Azure DevOps Branch policy type "Require a merge strategy" is not selecting the checkbox under "Limit merge types"
I am trying to update branch policy of a branch in Azure DevOps repository. I am trying to do it using Rest API calls following documentation from here.
When I run this from Postman, the request ...
0
votes
1
answer
48
views
Getting *Remote* WorkItem Links from the Reporting EndPoint
One can get workitem links from the reporting endpoint:
Reporting Work Item Links
One can also hit the operations store to get information about the work items, including Remote links [such as Hyper ...
0
votes
1
answer
57
views
How do I migrate Azure DevOPs Iterations through the API and PS
I am trying to migrate iterations between two ADOs. I can retrieve the list of iterations just fine but I get an error when doing the Invoke-RestMethod POST. Here is the error I receive from the ...
1
vote
2
answers
73
views
Getting the creator of an devops projects
Is it possible through the DevOps REST API to get the person who created the project? We are trying to delegate resposnibility to each project.
0
votes
1
answer
60
views
Migrate ADO project from to another New Project in Same Organisation
We are looking to migrate our current ADO project, including, board, repo, pipeline etc from our current project to New Project. This is to enable Epics. Is there a way to to move using any tools or ...
1
vote
1
answer
101
views
Azure Devops, How to extract latest tag present in a repository using Rest APIs?
I'm trying to fetch latest tag of a Azure git repo using Rest API.
So first fetched all tags of a repo using rest api.
But this json returned the tags in no fixed order i.e sometimes latest tag is at ...
0
votes
2
answers
70
views
Azure DevOps REST API: Match Manual Test Case steps to Test Run results?
I would like to create a simple report for manual test results of test cases using REST API:
Test case step description / expected result
Result: pass / fail
Comments, attachments
I use the ...
2
votes
1
answer
81
views
Access DevOps API with application delegation
Is there any way to access the Azure Devops REST API with a service principal? In the API permissions there is only user delegated permissions:
We need do do some scraping of projects and tasks. And ...
0
votes
1
answer
70
views
Error using Azure DevOps REST API and classificationnodes
I am getting an error message when using the Azure DevOps REST API (regardless of version).
Running POST https://dev.azure.com/{organisation}/{project}/_apis/wit/classificationnodes/Areas?api-version=...
0
votes
1
answer
96
views
Get List of Collection REST API - Azure DevOps Server (TFS)
I am trying to get list of collection in from Azure DevOps Server. There is no API available to fetch the list of collections.
[tfs url]/_apis/projectCollections?$top=1000
I tried above API (PAT ...
0
votes
1
answer
89
views
How to assign organization-level permissions to create repositories across all projects in organization in Azure DevOps?
I am creating automation for Azure DevOps. I want to follow the principle of least privilege. I only need to grant permissions to create repositories across all projects in the organization. I know ...
0
votes
1
answer
40
views
ADO API for 'Suite Test Case - Update' doesn't work if we want the 'isActive' to be set as true
https://dev.azure.com/xxx/yyy/_apis/testplan/Plans/2781987/Suites/4930403/TestPoint?api-version=7.1-preview.2
For the above link, when I used the Request Payload as
[ { "id": 2218725, "...
1
vote
1
answer
78
views
Possible CodeReviewThreadTypes of Azure Devops Git Api Threads
I was unable to find anywhere on the internet what the accepted CodeReviewThreadType values were in the Azure DevOps Thread API.
I am trying to make our remote service add a system message like "...
1
vote
1
answer
92
views
How to make requests to local-hosted Azure Devops Server pats API?
I'm trying to create a PAT on my Azure Devops Server through the restful API, as described here:
https://learn.microsoft.com/en-us/rest/api/azure/devops/tokens/pats/create?view=azure-devops-rest-7.0
I ...
0
votes
0
answers
71
views
How can i convert Payload with array of JSON objects in PowerShell? [duplicate]
I am currently facing issue where in I cant able to convert the payload into array of Json objects
[{}] in powershell. I am using below code and I am getting only JSON object in output which is not ...
0
votes
1
answer
92
views
ADO API for 'Add test cases to a suite with specified configurations' throws count value 0 with value []
This is the JSON Payload :
{
"pointAssignments": [
{
"configurationId": 2738
}
],
"workItem": 3931630
}
The Response Code is '200 OK' but the response is :
{
&...
1
vote
1
answer
116
views
Getting “404 - Not found” when I call add comment to work item Azure DevOps API
I am setting up a ticketing system with ADO as the backend. I am using Power Automate to read emails and create a ticket (work item in ADO). I have described the whole flow below. I am stuck at Flow 2....
0
votes
1
answer
144
views
Azure Devops | Get user/group access into project and resources(pipelines, repos, etc.) by API call
I'm trying to fetch Azure Devops user and group access into project and project resources(pipelines, repos, etc.).
I tried to find an API from the documentation that assisted.
ChatGPT offered to use:
...
0
votes
1
answer
71
views
How do i add Attachments to Devops via api using make.com
I am integrating clickup to Azure devops (using make.com) and i want that when an issue is updated with attachements on clickup then the file should be attached to devops also.
I understand there is ...
0
votes
1
answer
109
views
Getting data for the deleted pipelines in Azure dev ops
I am trying to call the ADO API and get deployment and buildruntimeline related data from it. I wanted to know if there's a way to get data for the deleted pipelines. Is there a flag or some way to ...
0
votes
1
answer
118
views
AzureDevOps- Automating Branch Pipeline: Task State Check in work item
I need to automate the branch pipeline to perform the following steps:
Check the status of a specific task ID.
If the task ID is "closed," reopen it and set its status to "active."...
0
votes
1
answer
89
views
How to get attachment thumbnail of workitem in Azure DevOps API?
I need to preview all the attachments of a workitem in compressed size (thumbnail)
I don't want to download full-size attachments.
I know currently we need to use following link
$url = https://dev....
0
votes
1
answer
122
views
How to use JWT token used obtained using MSAL library to commit code in Azure Repo
We are using @azure/msal-react node module to authenticate a user. User is prompted to enter his uid/pwd and Azure AD authenticates the user. Once, authenticated, user gets a JWT token.
This token is ...
0
votes
2
answers
163
views
Create pipleine in Azure devops by rest API failed - Value cannot be null. Parameter name: repositoryName
I am tring to create Azure devops (tfs) Pipeline by rets API as described here: https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/pipelines/create?view=azure-devops-rest-6.0
Request ...
0
votes
2
answers
146
views
Get WorkItem Links with State Via REST API
I'm trying to get the list of links in ADO given the work item ID using a rest API. Also I want to get the state of each linked workitem in the result.
Currently, I am using the below endpoint to get ...
0
votes
1
answer
189
views
How to validate azure PAT token thru REST API
I am trying to validate the PAT token thru REST api, just wanted to make sure the PAT token has board access
I tried this API
POST https://dev.azure.com/1000057326/_apis/security/...