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

Installation
Install with the node package manager npm:
$ npm install jira-client
Examples
Create the JIRA client
var JiraApi = require('jira-client');
import JiraApi from 'jira-client';
var jira = new JiraApi({
protocol: 'https',
host: 'jira.somehost.com',
username: 'username',
password: 'password',
apiVersion: '2',
strictSSL: true
});
Find the status of an issue
jira.findIssue(issueNumber)
.then(function(issue) {
console.log('Status: ' + issue.fields.status.name);
})
.catch(function(err) {
console.error(err);
});
jira.findIssue(issueNumber)
.then(issue => {
console.log(`Status: ${issue.fields.status.name}`);
})
.catch(err => {
console.error(err);
});
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/