# jira-client

> Wrapper for the JIRA API

Latest version **8.2.2** (published 2022-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install jira-client
pnpm add jira-client
yarn add jira-client
bun add jira-client
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 8.2.2 |
| Published | 2022-11-03 |
| First published | 2015-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/jira-client) |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 461 |
| Author | Steven Surowiec |
| Maintainers | mtscout6, kanoyugoro, pioug, geddy, seth10001 |

## Links

- npm: https://www.npmjs.com/package/jira-client
- Repository: https://github.com/jira-node/node-jira-client
- Homepage: http://github.com/jira-node/node-jira-client
- Issues: https://github.com/jira-node/node-jira-client/issues
- npm.io page: https://npm.io/package/jira-client

## Dependencies (2)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.6.0
- [postman-request](https://npm.io/package/postman-request.md) ^2.88.1-postman.30

## Recent versions

- 8.2.2 (latest) — 2022-11-03
- 8.2.1 — 2022-10-31
- 8.2.0 — 2022-10-13
- 8.1.0 — 2022-03-08
- 8.0.0 — 2021-11-21
- 7.2.0 — 2021-11-17
- 7.1.0 — 2021-11-06
- 7.0.0 — 2021-11-04
- 6.23.0 — 2021-10-15
- 6.22.0 — 2021-07-27
- 6.21.1 — 2020-10-03
- 6.21.0 — 2020-09-11
- 6.20.0 — 2020-08-24
- 6.19.0 — 2020-08-21
- 6.18.0 — 2020-07-19
- … 45 more at https://npm.io/package/jira-client/versions

## README

# JavaScript JIRA API for node.js #

A node.js module, which provides an object oriented wrapper for the Jira Rest API.

[![Documentation](https://img.shields.io/badge/Documentation--green.svg)](https://jira-node.github.io/)
[![Jira Rest API](https://img.shields.io/badge/Jira%20Rest%20API--green.svg)](http://docs.atlassian.com/jira/REST/latest/)
[![Run tests](https://github.com/jira-node/node-jira-client/workflows/Run%20tests/badge.svg)](https://github.com/jira-node/node-jira-client/actions)
[![npm](https://img.shields.io/npm/v/jira-client.svg)](https://www.npmjs.com/package/jira-client)
[![Downloads](https://img.shields.io/npm/dm/jira-client.svg)](https://npmjs.com/jira-client)
[![Install Size](https://packagephobia.now.sh/badge?p=jira-client)](https://packagephobia.now.sh/result?p=jira-client)
[![dependency Status](https://david-dm.org/jira-node/node-jira-client/status.svg)](https://david-dm.org/jira-node/node-jira-client)
[![devDependency Status](https://david-dm.org/jira-node/node-jira-client/dev-status.svg)](https://david-dm.org/jira-node/node-jira-client?type=dev)

## Installation ##

Install with the node package manager [npm](http://npmjs.org):

```shell
$ npm install jira-client
```

## Examples ##

### Create the JIRA client ###

```javascript
// With ES5
var JiraApi = require('jira-client');

// With ES6
import JiraApi from 'jira-client';

// Initialize
var jira = new JiraApi({
  protocol: 'https',
  host: 'jira.somehost.com',
  username: 'username',
  password: 'password',
  apiVersion: '2',
  strictSSL: true
});
```

### Find the status of an issue ###

```javascript
// ES5
// We are using an ES5 Polyfill for Promise support. Please note that if you don't explicitly
// apply a catch exceptions will get swallowed. Read up on ES6 Promises for further details.
jira.findIssue(issueNumber)
  .then(function(issue) {
    console.log('Status: ' + issue.fields.status.name);
  })
  .catch(function(err) {
    console.error(err);
  });

// ES6
jira.findIssue(issueNumber)
  .then(issue => {
    console.log(`Status: ${issue.fields.status.name}`);
  })
  .catch(err => {
    console.error(err);
  });

// ES7
async function logIssueName() {
  try {
    const issue = await jira.findIssue(issueNumber);
    console.log(`Status: ${issue.fields.status.name}`);
  } catch (err) {
    console.error(err);
  }
}

```

## Documentation ##
Can't find what you need in the readme?  Check out our documentation here: https://jira-node.github.io/

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