Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jira-tamarasaurus

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jira-tamarasaurus

Wrapper for the JIRA API

  • 0.6.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

JavaScript JIRA API for node.js

Build Status

A node.js module, which provides an object oriented wrapper for the JIRA REST API.

This library is built to support version 2.0.alpha1 of the JIRA REST API. This library is also tested with version 2 of the JIRA REST API It has been noted that with Jira OnDemand, 2.0.alpha1 does not work, devs should revert to 2. If this changes, please notify us.

JIRA REST API documentation can be found here

Installation

Install with the node package manager npm:

$ npm install jira

or

Install via git clone:

$ git clone git://git://github.com/steves/node-jira.git
$ cd node-jira
$ npm install

Example

Find the status of an issue.

JiraApi = require('jira').JiraApi;

var jira = new JiraApi('https', config.host, config.port, config.user, config.password, '2.0.alpha1');
jira.findIssue(issueNumber, function(error, issue) {
    console.log('Status: ' + issue.fields.status.name);
});

Currently there is no explicit login call necessary as each API call uses Basic Authentication to authenticate.

Options

JiraApi options:

  • protocol<string>: Typically 'http:' or 'https:'
  • host<string>: The hostname for your jira server
  • port<int>: The port your jira server is listening on (probably 80 or 443)
  • user<string>: The username to log in with
  • password<string>: Keep it secret, keep it safe
  • Jira API Version<string>: Known to work with 2 and 2.0.alpha1
  • verbose<bool>: Log some info to the console, usually for debugging
  • strictSSL<bool>: Set to false if you have self-signed certs or something non-trustworthy

Implemented APIs

  • Authentication
  • Projects
  • Pulling a project
  • List all projects viewable to the user
  • Versions
  • Pulling versions
  • Adding a new version
  • Pulling unresolved issues count for a specific version
  • Rapid Views
  • Find based on project name
  • Get the latest Green Hopper sprint
  • Gets attached issues
  • Issues
  • Add a new issue
  • Update an issue
  • Transition an issue
  • Pulling an issue
  • Issue linking
  • Add an issue to a sprint
  • Get a users issues (open or all)
  • List issue types
  • Search using jql * Set Max Results * Set Start-At parameter for results
  • Add a worklog
  • Add a comment
  • Transitions
  • List

TODO

  • Refactor currently implemented APIs to be more Object Oriented
  • Refactor to make use of built-in node.js events and classes

Changelog

  • 0.6.0 Comment API implemented (thanks to StevenMcD)
  • 0.5.0 Last param is now for strict SSL checking, defaults to true
  • 0.4.1 Now handing errors in the request callback (thanks mrbrookman)
  • 0.4.0 Now auto-redirecting between http and https (for both GET and POST)
  • 0.3.1 Request is broken, setting max request package at 2.15.0
  • 0.3.0 Now Gets Issues for a Rapidview/Sprint (thanks donbonifacio)
  • 0.2.0 Now allowing startAt and MaxResults to be passed to searchJira, switching to semantic versioning.
  • 0.1.0 Using Basic Auth instead of cookies, all calls unit tested, URI creation refactored
  • 0.0.6 Now linting, preparing to refactor
  • 0.0.5 JQL search now takes a list of fields
  • 0.0.4 Added jql search
  • 0.0.3 Added APIs and Docco documentation
  • 0.0.2 Initial version

FAQs

Package last updated on 25 Jul 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc