WebUi

JIRA Service

Creates issues in JIRA ticketing system.

Import the module

require('@aliceo2/web-ui').Jira

Create an instance

new Jira({url: URL, serviceAccount: {user: ACCOUNT_USER, pass: ACCOUNT_PASS}, projectId: PROJECT_ID});

Where:

Example

const Jira = require('@aliceo2/web-ui').Jira;
const jira = new Jira({url: 'http://localhost/jira/rest/api/2/issue', accountUser: 'test', accountPass: 'test', projectId: 1});

/// create bug issue
jira.createBugIssue('alice', 'bob', 'Run fails', 'Due to unknown reasons...')
  .then((details) => console.log('Created:', details.key));