Install with the npm:
$ npm install jira.jsInstall with the yarn:
$ yarn add jira.js// ES5
var { Client } = require("jira.js");
// ES6
import { Client } from "jira.js";
// Initialize
var client = new Client({
host: "https://jira.somehost.com"
});// 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;
}const client = new Client({
host: "https://jira.somehost.com",
authentication: {
basic: {
username: "MyUsername",
apiToken: "My Password or API Token"
}
}
});const client = new Client({
host: 'https://jira.somehost.com',
authentication: {
jwt: {
iss: 'id';
secret: 'secret key';
}
}
});const client = new Client({
host: "https://jira.somehost.com",
authentication: {
accessToken: "my access token"
}
});Can't find what you need in the readme? Check out our documentation here: https://mrrefactoring.github.io/jira.js/
- Response models
- Method names reducing
- FEATURE:
jiraExpressions.analyseJiraExpressionwas added - FEATURE:
screens.getIssueTypeScreenSchemeItemswas added - FEATURE: In
projects.getProjectsPaginatedwas addedstatusproperty - FEATURE: In
projects.deleteProjectwas addedenableUndoproperty - DEPRECATION:
timeTracking.disableTimeTrackingare deprecated (Removed from official API). Will be removed in next major version
- FEATURE:
issueFields.getAllFieldConfigurationsadded as experimental - FEATURE:
issueFields.getFieldConfigurationItemsadded as experimental - IMPROVEMENT: dependencies update
- FIX:
strictGDPRfeature fixed - FIX:
Cannot read property 'Authorization' of undefinedfixed
- FEATURE:
strictGDPRproperty added to Config. Allows use only GDPR-compliant functionality - FEATURE:
users.getAllUsersDefaultadded - FEATURE:
issueCustomFieldOptions.updateCustomFieldOptionsadded as experimental - DEPRECATION:
projectRoleActors.getActorsCountForProjectRoleare deprecated (Removed from official API). Will be removed in next major version
- DEPRECATION:
permissionsSchemesandissueAttachmentare deprecated - IMPROVEMENT: agile api typings improved
- IMPROVEMENT: dependencies update
- FIX: Authorization parameter excluded for agile API in the request body
- FIX: JWT Authentication default expire time added
- IMPROVEMENT: modified
atlassian-jwt(removed lodash from dependencies, bundle size decreased) - IMPROVEMENT: small tests for authentication added
- FIX: documentation link fixed
- RELEASE