azure-devops-rest-api

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

左心房为你撑大大i 提交于 2021-02-11 12:25:42
问题 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 =

Pass a Variable group name using REST API Azure devops

ぃ、小莉子 提交于 2021-02-10 18:26:42
问题 Is there any way to pass a variable group name to a release pipeline using REST API without editing the release definition. I am able to do it using the following $defurl = "https://vsrm.dev.azure.com/org/proj/_apis/release/definitions/13?api-version=5.1" $def = Invoke-RestMethod -Uri $defurl -Method Get -Headers $header $def.variableGroups="VariableGroupName" $json = @($def) | ConvertTo-Json -Depth 99 $udef = Invoke-RestMethod -Uri $defurl -Method Put -Body $json -ContentType "application

console error regarding permissions for ms.vss-web.platform

北战南征 提交于 2021-02-10 06:14:41
问题 I am developing an Azure DevOps extension and I keep seeing the below error in my console. I am quite confused because the extension itself has no issues access all the API endpoints I need and nowhere else in the program do I get errors. I am frankly not even sure which of the azure devops npm dependencies I have is the issue. I presume its in the internal auth for the sdk. ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1 No permissions found for security namespace '2e9eb7ed-3c0a

console error regarding permissions for ms.vss-web.platform

拈花ヽ惹草 提交于 2021-02-10 06:14:25
问题 I am developing an Azure DevOps extension and I keep seeing the below error in my console. I am quite confused because the extension itself has no issues access all the API endpoints I need and nowhere else in the program do I get errors. I am frankly not even sure which of the azure devops npm dependencies I have is the issue. I presume its in the internal auth for the sdk. ms.vss-web.platform-content.es6.PRFIe__3y_bOOZcQR.min.js:1 No permissions found for security namespace '2e9eb7ed-3c0a

Identifying work items which have been released via VSTS API

て烟熏妆下的殇ゞ 提交于 2021-02-08 07:52:40
问题 Trying to determine which VSTS Work Items have been released to a given Environment (production). Ideally looking for a Service Hook to tell me when work items are deployed so we can keep the rest of the company updated on when items are deployed. Cannot find this available in the VSTS API. In the VSTS UI under the Release Summary tab it shows linked Work Items. However linked Work Items don't appear to be available via the API. VSTS API docs for Get Release In the VSTS UI under each Work

How to connect TFS Online using PAT or OAUT?

大憨熊 提交于 2021-02-07 14:19:44
问题 Can't believe I'm stuck with a LOGIN :( hate when this happens. Can somebody enlight me how to connect TF.EXE by using PAT password or in the best case an OAuth token? I might add that I already have a Pat token and an OAuth token, not a problem while trying to get those, but every time I try this example: TF.exe workspaces /collection:xxxx.visualstudio.com/xxxx /loginType:OAuth /login:.,MyPatTokenOrMyOauthToken /noprompt I get the following response: TF30063: You are not authorized to access

How do I programmatically add attachments to test results during a build in VSTS?

随声附和 提交于 2021-02-07 12:28:37
问题 I'm looking for a way to add my own attachments to test results so that I can see them after a build has completed here... I would like to add these programmatically, during a build and after a test has failed. The attachments will be screenshots. Is this possible? I had a quick look at the API reference but this looked to be concerned with adding attachments to existing test 'runs', or on the build, the side was for creating build definitions and triggering them. I may have missed it but I

send multiple parameter to Azure-Devops pipeline job via Powershell

你说的曾经没有我的故事 提交于 2021-01-29 20:52:28
问题 I am able to kick off an Azure Devops Build job and send a text parameter but I only seem to be able to send a single parameter and not more. I need to send a token parameter Ok that works but I also want to send a text param that contains a json payload to be processed by a Powershell script in the Build job. So I have a Hellow World definition setup with two variables in Pipeline variables. First one is tokentext the second one is jsonInput. Both have the checkbox "Settable at queue time"

Is there a way to find the workitems for a release in Azure DevOps Api 5.1?

守給你的承諾、 提交于 2021-01-29 14:29:27
问题 I can find a release in Azure DevOps Api 5.1 by a request to https://vsrm.dev.azure.com/mycompany/myproject/_apis/release/releases/myreleaseid?api-version=5.1 How can I get the workitems of that release as shown on the devops portal under Deployment - Stages - Workitems? My naive approach just using https://vsrm.dev.azure.com/mycompany/myproject/_apis/release/releases/myreleaseid/workitems?api-version=5.1 resulted in a 404. There is a stakeholder in the workitem and I want to send him a

Errors when attempting to update team field values

坚强是说给别人听的谎言 提交于 2021-01-29 11:32:38
问题 I'm getting any of multiple errors when I try to use the Client SDK to add an existing Area to an existing Team. Here's my code: Using oTeamClient As TeamHttpClient = Utils.Connection.GetClient(Of TeamHttpClient) Using oWorkClient As WorkHttpClient = Utils.Connection.GetClient(Of WorkHttpClient) oValue = New TeamFieldValue With {.Value = Area.Path, .IncludeChildren = False} oTeams = oTeamClient.GetTeamsAsync(ProjectName).Result oTeam = oTeams.Single(Function(Team) Team.Name.StartsWith