How to use jira-client - 3 common examples

To help you get started, we’ve selected a few jira-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github foxythemes / jira-cli / src / jira.js View on Github external
return this.config.init( this.configFileName ).then(function( r ){
      let options = r;
      if (r.proxy) {
        const proxiedRequest = request.defaults({ proxy: r.proxy });
        options = Object.assign({}, r, { request: proxiedRequest });
      }

      // Connect  to Jira
      _self.api = new JiraApi( options );
    });
  }
github jgillick / jira-changelog / src / Jira.js View on Github external
this.ticketPromises = {};

    const { host, username, password} = config.jira.api;
    let { email, token } = config.jira.api;

    if (!token && typeof password !== 'undefined') {
      console.warn('WARNING: Jira password is deprecated. Use an API token instead.');
      token = password
    }
    if (!email && typeof username !== 'undefined') {
      console.warn('WARNING: Jira username is deprecated for API authentication. Use user email instead.');
      email = username
    }

    if (config.jira.api.host) {
      this.jira = new JiraApi({
        host,
        username: email,
        password: token,
        protocol: 'https',
        apiVersion: 2,
        strictSSL: true
      });
    } else {
      console.error('ERROR: Cannot configure Jira without a host configuration.');
    }
  }
github rocket-internet-berlin / RocketDashboard / server / src / service / jiraService.js View on Github external
constructor(config) {
    JiraService.validateConfig(config);

    const { host, username, password } = config;
    this.jira = new JiraApi({
      protocol: 'https',
      host,
      username,
      password,
      apiVersion: '2',
      strictSSL: true,
    });

    this.statusCategory = {
      inProgress: ['In Progress', 'In Development'],
      selectedForDev: ['Selected for Development'],
      readyForQA: ['Ready for QA', 'Ready for QA (Stage)', 'Ready for QA (Testsystem)'],
    };
  }

jira-client

Wrapper for the JIRA API

MIT
Latest version published 1 year ago

Package Health Score

57 / 100
Full package analysis

Popular jira-client functions