GithubHelp home page GithubHelp logo

pyjira's Introduction

PyJira REST API wrapper

Travis build status

Setup

First, you're gonna want to do this:

pip install pyjira

You're already halfway there!

Next, you need to set up your environment variables.

Go to your home directory (~/) and put this in ".pyjira":

export PYJIRA_USER=put your username here

export PYJIRA_TOKEN=put your password here

export PYJIRA_ORG=put the organization name here

Next, add this to ".bash_profile", also in the home directory:

source ~/.pyjira

On startup, these environment variables will be loaded and you will be able to use PyJira. Woot!

Usage

To use, import like so:

import pyjira

To get issues relating to a project:

pyjira.get_issues("SpaceJam") # Where "SpaceJam" is the project name

You can also limit the amount of results you get (default=50):

pyjira.get_issues("SpaceJam", 20) # 20 maximum results

To get a specific issue, call get_issue() with the issue's id/key:

pyjira.get_issue("SpaceJam-931")

To get all existing fields, call get_all_fields():

pyjira.get_all_fields()

To get a specific field:

pyjira.get_field("customfield_90010") # You can also just pass "90010"

To get all fields within an issue:

pyjira.get_issue_fields("SpaceJam-931")

# Add False as a second parameter to get result with "customfield_#" field names

WIP

This project doesn't have many functions at the moment, but it will be added to whenever a new one is needed.

pyjira's People

Contributors

muddytm avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.