
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
This was forked from https://github.com/steves/node-jira . Big thanks to steves for starting the code base.
A node.js module, which provides a great interface for the JIRA REST API.
JIRA REST API documentation can be found here
Install with the node package manager npm:
$ npm install js-jira
or
Install via git clone:
$ git clone git://github.com/clearly/js-jira.git
$ cd js-jira
$ npm install
JiraApi = require('jira').JiraApi;
var jira = new JiraApi({
scheme : 'https', // Default 'https'
host : 'jira.yourdomain.com' // REQUIRED
port : 443 // Default 443
user : 'MyJiraId', // REQUIRED
password : 'NotASecret' // REQUIRED
version : '2' // Default '2'
base : 'jira' // Default '' - The prefix in your install before /rest/api
});
jira.findIssue(issueNumber, function(error, issue) {
console.log('Status: ' + issue.fields.status.name);
});
Currently there is no explicit login call necessary as each API call uses Basic Authentication to authenticate.
Returns an array of remote links data.
jira.getRemoteLinks(issueKey, function(err, links) {
if (!err) {
console.log(issueKey + ' has ' + links.length + ' web links');
}
});
Returns an array of remote links data.
// create a web link to a GitHub issue
var linkData = {
"object": {
"url" : "https://github.com/steves/node-jira/issues/1",
"title": "Add getVersions and createVersion functions",
"icon" : {
"url16x16": "https://github.com/favicon.ico"
}
}
};
jira.createRemoteLink(issueKey, linkData, function (err, link) {
});
More information can be found by checking JIRA Developer documentation.
JiraApi options:
protocol<string>: Typically 'http:' or 'https:'host<string>: The hostname for your jira serverport<int>: The port your jira server is listening on (probably 80 or 443)user<string>: The username to log in withpassword<string>: Keep it secret, keep it safeJira API Version<string>: Known to work with 2 and 2.0.alpha1verbose<bool>: Log some info to the console, usually for debuggingstrictSSL<bool>: Set to false if you have self-signed certs or something non-trustworthyoauth: A dictionary of consumer_key, consumer_secret, access_token and access_token_secret to be used for OAuth authentication.base<string>: A base slug if your JIRA instance is not at the root of hostFAQs
JS based JIRA API
The npm package js-jira receives a total of 5 weekly downloads. As such, js-jira popularity was classified as not popular.
We found that js-jira demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.