- Get Visual Studio Code
- Create Azure DevOps Personal Access Token
- Install REST Client extension
- Configure Settings.json with environment variables
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.
Download the REST Client extension for Visual Studio Code
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"
}
}
- Getting started with a simple get and update work item
- Update fields on two work items
- Update work item and create a new work item
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.