azure-devops-rest-api

VSTS API List Iterations (current timeframe) not working in powershell

孤街浪徒 提交于 2019-12-11 23:37:18
问题 See this and this SO question for the back story. In short, I am trying to create a bug in a VSTS project using powershell in the current iteration. Following the documentation here, if I visit this URL in Chrome (substituted with right values of course) I get the right answer. i.e. the returned list's count is 1 and there is only 1 iteration json serialized object in the the array with the right (current) iteration. GET https://{accountName}.visualstudio.com/{project}/{team}/_apis/work

VSTS Extension Data Storage on Project Scope Level

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 18:43:33
问题 I have successfully created a settings page with my work item page extension that automates the generation of dev, doc, qa, and testware tasks on work items. The settings page is for modifying the branches ("6.14", "6.15", etc.) that the tasks could be generated for. Using the Data Storage client service API, the extension currently saves settings on a project collection level. What I want to do is have the extension with the settings be unique for each project the extension is installed on.

How to get done/completed backlog items from Azure Dev Ops rest api?

孤街浪徒 提交于 2019-12-11 17:31:04
问题 'Backlogs - Get Backlog Level Work Items' rest api seems to only return "open" work items, excluding done/completed. https://docs.microsoft.com/en-us/rest/api/azure/devops/work/backlogs/get%20backlog%20level%20work%20items?view=azure-devops-rest-5.0 I don't see any additional parameter mentioned in the docs to return everything, so how to get completed items for a project/team/backlog combination? 回答1: How to get done/completed backlog items from Azure Dev Ops rest api? You could not get done

Power BI Service - refresh failure on using VSO API

假如想象 提交于 2019-12-11 17:23:24
问题 I have connected my Power BI report to the VSO data, using VisualStudioOnline connector (beta). Since this doesn't support the multi line text field data under it's data set, I have used the queries option to call the VSO API to fetch this data. The report refreshes successfully when used in Power BI desktop app. But the refresh fails when published to the Power BI service with the message "You can't schedule refresh for this dataset because the following data sources currently don't support

Create work items in vsts with rest api using powershell?

不想你离开。 提交于 2019-12-11 17:12:53
问题 I am trying to create a work-item in VSTS using power shell that I will be using with some of my custom solutions Can anyone help me with the script? 回答1: Refer to this script: param( [string]$witType, [string]$witTitle ) $u="https://[account].visualstudio.com/DefaultCollection/[team project]/_apis/wit/workitems/`$$($witType)?api-version=1.0" $body="[ { `"op`": `"add`", `"path`": `"/fields/System.Title`", `"value`": `"$($witTitle)`" } ]" $user = "test" $token = "[personal access token]"

How to push the file to TFS using azure-devops-node-api library in NodeJS?

若如初见. 提交于 2019-12-11 16:23:49
问题 I'm trying to push the files to repository in Azure Repos. I'm using azure-devops-node-api library to connect and push the file to the repository. I'm beginner in NodeJS. Please find the below code. I'm not sure how to proceed further. Please help! const orgUrl = "https://dev.azure.com/orgname"; const azure = require('azure-devops-node-api'); var accessToken = "ACCESS_TOKEN"; var authHandler = azure.getPersonalAccessTokenHandler(accessToken); var connection = new azure.WebApi(orgUrl,

Using a personal access token for azure devops API repository manipulation

只谈情不闲聊 提交于 2019-12-11 14:30:15
问题 I have generated a personal access token from the Azure Devops user interface but am unable to use this to make requests against the Devops API. I have tried many different header fields, but I am always redirected to the log in page as though I hadn't authenticated. token = #Token generated on Devops project page token_bytes = token.encode('utf-8') token64 = base64.b64encode(token_bytes) authorization_string = "basic " + str(token64) repo_endpoint_url = "https://dev.azure.com/{organization}/

Does Azure DevOps provide persistent storage for its builds?

大兔子大兔子 提交于 2019-12-11 08:09:48
问题 I would like to develop an Azure DevOps build that needs to read some data and after the build update that data. My options currently are: Associate the data with the build as an artifact. The next build will know to look at the previous build for that artifact and thus will get the required data. Relies on the presence of the previous build, i.e. if anyone accidentally deletes it - poof. Also, if anyone screws the retention policy - poof. Store the data as file in the Git repo, either the

How to specify the API version?

て烟熏妆下的殇ゞ 提交于 2019-12-11 07:49:19
问题 According to the Azure DevOps Services REST API Reference, the request URI has the following format: https://{instance}[/{team-project}]/_apis[/{area}]/{resource}?api-version={version} Regarding the api-version : Every API request should include an api-version to avoid having your app or service break as APIs evolve. I started using the .NET client libraries for Azure DevOps Services (and TFS) to manage dashboards programmatically. I am able to connect to Azure DevOps using a Personal Access

PolicyDefinition result return empty collection using Java SDK of TFS 2015 “tp.getCheckinPolicies()” or “vcc.getCheckinPoliciesForServerPaths()”

我是研究僧i 提交于 2019-12-11 07:35:23
问题 Does anyone tried to retrieve PolicyDefinition using Java SDK of TFS 2015? I have used following code to retrieve the PolicyDefinition under intelliJ Plugin. Code execute fine but I am getting empty collection of PolicyDefinition. I am working on CustomPath Policy and I know on particular team project customPath Policy is applied. Before allowing user checkin I want to validate that weather this policy is applied or not. Sample Code: Project myProject = policyContext.getProject(); //