Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.74 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.74 KB

Samples to update and create work items in batch

Getting Started

Personal Access Token

You will need to create a Personal Access Token. For the work item batch API's, it appears you need a full scoped PAT.

You then need to Base64Encode the {username}:{personalaccesstoken} before it can be used by the REST Client. You can store this value locally in the VS Code Settings.json file.

REST Client

Download and install extension

Download the REST Client extension for Visual Studio Code

Settings.json

Add the following entries to the REST Client environment variables. These variables are used throughout the samples. You can also hardcode the values if that is preferred.

 "rest-client.environmentVariables": {
        "$shared": {
            "organization": "organization name",
            "project": "project name",
            "token": "base64encoded username:personalaccesstoken"
        }
    }

Current Samples

Running Samples

Some of the indivual calls will need values modified. Revision and work item id for example. Otherwise you just open a .rest file and run the request.

run rest client request image