Package Exports
- jira.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jira.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
JavaScript JIRA API Client
Installation
Install with the npm:
$ npm install jira.js
Install with the yarn:
$ yarn add jira.js
Examples
Create the JIRA client
// ES5
var { Client } = require("jira.js");
// ES6
import { Client } from "jira.js";
// Initialize
var client = new Client({
host: "https://jira.somehost.com"
});
Get all projects
// ES5/ES6
client.projects
.getAllProjects({})
.then(projects => console.log(projects))
.catch(error => console.log(error));
// ES7
async function getProjects() {
const projects = await client.projects.getAllProjects({});
console.log(projects);
return projects;
}
Documentation
Can't find what you need in the readme? Check out our documentation here: https://mrrefactoring.github.io/jira.js/