Socket
Book a DemoInstallSign in
Socket

@atlassian/jira

Package Overview
Dependencies
Maintainers
18
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlassian/jira

Jira API client for Browser and Node.js

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
357
-38.77%
Maintainers
18
Weekly downloads
 
Created
Source

version:@latest

Jira.js

JIRA API client for Browser and Node.js

This is a port of the excellent bitbucket library by Munif Tanjim: https://github.com/MunifTanjim/node-bitbucket

JIRA API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/

Installation

via npm:

$ npm install @atlassian/jira --save

via yarn:

$ yarn add @atlassian/jira

Usage

Node

const JIRA = require('@atlassian/jira')

const jira = new JIRA()

Client Options

You can set the APIs' baseUrl and modify some behaviors (e.g. request timeout etc.) by passing a clientOptions object to the JIRA constructor.

const clientOptions = {
  baseUrl: 'https://api.atlassian.com/ex/jira/${cloudId}/rest/',
  headers: {},
  options: {
    timeout: 10
  }
}

const jira = new JIRA(clientOptions)

This enables you to use jira with Jira Cloud.

Authentication

Basic

jira.authenticate({
  type: 'basic',
  username: 'username',
  password: 'password'
})

OAuth

jira.authenticate({
  type: 'token',
  token: 'access token'
})

Keywords

jira

FAQs

Package last updated on 13 Dec 2018

Did you know?

Socket

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.

Install

Related posts