# azure-devops-api

> azure devops api for automating add the workitem

Latest version **1.0.11** (published 2022-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install azure-devops-api
pnpm add azure-devops-api
yarn add azure-devops-api
bun add azure-devops-api
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2022-02-09 |
| First published | 2022-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | engineerarun |
| Keywords | azure, azuredevops, azure-api, create workitem in azure, add workitem in azure, add and assign workitem |

## Links

- npm: https://www.npmjs.com/package/azure-devops-api
- Repository: https://github.com/Arunk28/azure-api
- Homepage: https://github.com/Arunk28/azure-api#readme
- Issues: https://github.com/Arunk28/azure-api/issues
- npm.io page: https://npm.io/package/azure-devops-api

## Dependencies (3)

- [ts-node](https://npm.io/package/ts-node.md) ^10.4.0
- [typescript](https://npm.io/package/typescript.md) ^4.5.5
- [azure-devops-node-api](https://npm.io/package/azure-devops-node-api.md) ^11.1.0

## Recent versions

- 1.0.11 (latest) — 2022-02-09
- 1.0.10 — 2022-02-09
- 1.0.9 — 2022-02-09
- 1.0.8 — 2022-02-09
- 1.0.7 — 2022-02-09
- 1.0.6 — 2022-02-09
- 1.0.5 — 2022-02-04
- 1.0.4 — 2022-02-04
- 1.0.3 — 2022-02-04
- 1.0.2 — 2022-02-04
- 1.0.1 — 2022-02-04
- 1.0.0 — 2022-02-04

## README

# azure-devops-api

By using this package lib we can create work item in azure devops.
only work item creation is supported in this version

# PAT
personnal access token is very important for using this library
https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=preview-page

# Install 
```
npm i azure-devops-api
```

# Usage

```
const addWorkItem = require("azure-devops-api");

let token = "PAT.............X";
let type   = "<type like Bug,Task,UserStory....>";
let title  = "<title>";
let description  = <desc about the item>;
let areaPath  ="<area path>";
let iterationPath  = "<iteration path>";
let assignedto  = "<assign email id>";
let parentLink = "<parent link url>" ; //--> this is optional  but you need to pass empty string if you dont have any parent link
const workItem = addWorkItem.createWorkItem(token,<org name>, <project name>, {
  type,
  title,
  description,
  areaPath,
  iterationPath,
  assignedto,
  parentLink
})

console.log(workItem.then((workItemId) => console.log(workItemId)));

```
 
# Package
https://www.npmjs.com/package/azure-devops-api

---
_Source: https://npm.io/package/azure-devops-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
