Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Repository files navigation

JavaScript JIRA API for node.js

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

DocumentationJira Rest APIRun testsnpmDownloadsInstall Sizedependency StatusdevDependency Status

Installation

Install with the node package manager npm:

$ npm install jira-client

Examples

Create the JIRA client

// With ES5varJiraApi=require('jira-client');// With ES6importJiraApifrom'jira-client';// Initializevarjira=newJiraApi({protocol: 'https',host: 'jira.somehost.com',username: 'username',password: 'password',apiVersion: '2',strictSSL: true});

Find the status of an issue

// 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);});// ES6jira.findIssue(issueNumber).then(issue=>{console.log(`Status: ${issue.fields.status.name}`);}).catch(err=>{console.error(err);});// ES7asyncfunctionlogIssueName(){try{constissue=awaitjira.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/

About

A Node.js wrapper for the Jira REST API

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages