Bandara
Bandara

Reputation: 800

How to create VSTS work item tags via vsts-node-api module?

I need to create work item tags using vsts-node-api module, it seems there is no function in WorkItemTrackingApi for this at the moment. Is there any alternative for this?

Following is the location of Work item API wrapper https://github.com/Microsoft/vsts-node-api/blob/master/api/WorkItemTrackingApi.ts

Upvotes: 1

Views: 778

Answers (1)

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29966

It is created automatically when you use "createWorkItem" and "updateWorkItem" method.

Referring to the code I provided in your previous question, update the code to following:

let wijson = [{ "op": "add", "path": "/fields/System.Title", "value": "Task created from Node JS" }, { "op": "add", "path": "/fields/System.Tags", "value": "Tag1; Tag2" }];

Upvotes: 2

Related Questions