/jira-rest-api-code-examples

This repository contains code examples to get better value from JIRA

MIT LicenseMIT

JIRA REST API CODE EXAMPLES

This repository contains code examples to get better value from JIRA

Instructions

First step is to install Jira module from pycontribs. Download and install using "pip install jira". If you use conda, refer this page.

You can either use your JIRA username and password OR get API token from JIRA to connect to your JIRA instance. Getting API token is preferable, because you don't want to expose your plain text password in python code. Atlassian has instructions to create API token.

Now, you have JIRA module installed and API token created. Time to test Jira instance connection using some python code! Check the code at connect.py to make sure you are able to connect to JIRA. If you are not able to connect, make sure that your api token and username are valid.

The examples given are for JIRA cloud instance. For JIRA server instance, you can follow the same examples with one exception -- API token is not available for JIRA server instances. So, you would need to use password or OAuth. Please refer this page, if you use JIRA server.