Questions tagged [azure-devops-extensions]

462 questions
0
votes
1 answer

Loading a JSON file in a VSTS extension

I'm trying to write a VSTS extension that needs to load (and parse) a JSON file but I'm having a hard time finding the right way to do it. So I have something like: VSS.init({ explicitNotifyLoaded: true, usePlatformScripts: true }); var…
Matt Burland
  • 44,552
  • 18
  • 99
  • 171
0
votes
2 answers

VSTS extension for adding a textbox to workitem

I am trying to add a textbox through the extension to VSTS. I need to know How to add a textbox using an extension to a work item in VSTS?
0
votes
1 answer

VSTS validating User Stories with an extension

So we are transitioning to VSTS from an on-premises TFS and what I'd like to do, for one particular project, is be able to validate some fields in VSTS when a user submits a User Story. What I have so far is that I've inherited a new process from…
Matt Burland
  • 44,552
  • 18
  • 99
  • 171
0
votes
1 answer

TFS Extension already exists but not shown

I have created a build extension and first time I tried to upload it I got an error because the json file wasn't well formatted. After fixing and trying again I get the error The extension already exists but the extension is not shown in the tfs…
pers
  • 195
  • 12
0
votes
1 answer

JavaScript client API for task groups?

Most REST APIs of TFS/VSTS have a JavaScript client for extensions to use. Is there one for /_apis/distributedtask/taskgroups? I've poked around the files under https://github.com/Microsoft/vss-web-extension-sdk/tree/master/typings , couldn't find…
Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
0
votes
1 answer

TFS Extension LocalStorage

I'm trying to port an application which uses localstorage to store values between sessions. Looking at vss-web-extension-sdk's VSS.SDK.js, it looks like TFS runs extensions in a sandbox which shims in a localstorage replacement, which works well…
0
votes
1 answer

Read Configuration from local machine in VSTS Extension

I'm new to VSTS Extension and typescript. We have a requirement to read the configuration file from Local Machine/ or UNC path in VSTS Extension. Data Storage (https://learn.microsoft.com/en-us/vsts/extend/develop/data-storage ) was not helpful as…
0
votes
1 answer

How do I use vsts-task-lib to get the path where build task's files are dropped?

My custom build task is running on an agent, and its files are located at E:\agent_work\_tasks\MyTaskName_106598a6-d5ba-4038-8dc8-ba0172210a94\0.0.13. Is there a way to use vsts-task-lib to get this path? If I were able to get the task id, name, and…
Scott Lin
  • 1,532
  • 1
  • 18
  • 28
0
votes
1 answer

How to limit VSTS Extension access to specific users or groups?

We are working on a VSTS Extension and want to only allow select users/groups to access and utilize the features of the extension. This extension essentially adds a dashboard that's linked from the gear menu. If a user doesn't have access to the…
alexk
  • 1,254
  • 1
  • 11
  • 16
0
votes
1 answer

Cannot publish vss-extension. "public": true cause the an error

I finished my VSTS extension and ready to publish it. I followed the steps here: https://learn.microsoft.com/en-us/vsts/extend/publish/command-line. I receive the following error: i:\Documents\GIT\wdc-extension>tfx extension publish --share-with…
0
votes
2 answers

VSTS extensions - Hyperlinks in Grid Source

Made my own VSTS extension that returns a Grid with a list of bugs read using a wiql. I want the (UI Control) Grid to include the bug title and hyperlink to the bug url so that it is possible to click on the title to jump to the bug. I could not…
0
votes
1 answer

Content Security Policy preventing download of generated CSV file from VSTS Extension

I'm trying to write a VSTS Extension that generates a report and provides a link to download the data as a CSV. I have a string that is being saved to a CSV: $("#downloadReportButton".click(function () { var csvString = getCSV() var a =…
alexk
  • 1,254
  • 1
  • 11
  • 16
0
votes
1 answer

"401 Unauthorized" while using vss-web-extension-sdk for requests

I am in the process of creating a report, generated and organized from various VSTS API calls. I am running into a wall using the vss.sdk to make the requests to the git rest api. The request seemed easy enough, following from examples The Core…
0
votes
2 answers

How can I have my VSTS Extension Splitter remember if a user collapsed the panel or not?

I'm building a VSTS Extension and I want to take advantage of the Platform UI controls offered by Microsoft. Namely, I want to take advantage of the splitter control. I tried to follow the documentation as best as I could, but it is not written out…
myermian
  • 31,823
  • 24
  • 123
  • 215
0
votes
2 answers

VSTS Extension Data Storage on Project Scope Level

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…