Initialize the JIRA client
masterTo use the library, import JiraApi (using require for ES5 or import for ES6) and instantiate it with a configuration object. The configuration object requires protocol, host, username, password, and apiVersion. You can also specify strictSSL.
// 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
});