Questions tagged [python-jira]

Actually called jira-python, this is a python library created to use with REST APIs provided by JIRA.

JIRA provides a number of REST APIs to capture or push information to JIRA. These APIs, being REST, can be used with many programming languages. JIRA-Python library makes it easier to use these APIs using Python applications.

The library was created by Ben Speakmon and can be downloaded from bitbucket.

296 questions
2
votes
2 answers

How do I clone an issue in JIRA?

I would like to clone an existing issue in JIRA using REST APIs in Python, but also would like to change the project and issue type when I clone it. How could I accomplish this? Any help is much appreciated. Thanks!
2
votes
1 answer

how to run multiple jira search_issues queries in parallel inside python function?

I have a python function(python 3.6) which executes approximately 140-150 jira search_issue queries and each query approximately takes 7-8 seconds to return the result. So in all this python function takes like 4-5 mins to execute. Is there a way…
2
votes
1 answer

How to avoid hard coded username/password in jira.cfg for pytest_jira plugin

I am trying to integrate pytest-jira plugin to my python script. I am referring to this link. It is not feasible to hard code username/password in clear text form in ~/jira.cfg. Is there any way I can override them from outside? Basically I am…
npatel
  • 1,081
  • 2
  • 13
  • 21
2
votes
1 answer

Is there a programmatic way to retrieve notifications from JIRA without going through email?

I am working on a Python bot to sync a bunch of stuff for me from my JIRA instance on a regular basis. I don't want to be continuously polling a list of known JIRA keys looking for changes. Ideally I would want the bot to add itself as a watcher to…
grg-n-sox
  • 717
  • 2
  • 5
  • 25
2
votes
1 answer

Jira python fetch issues

I am using jira-python client and trying to fetch all issues currently open in a project or component. but while trying this it gives me error : jira.search_issues('project=ABC and assignee != currentUser()', startAt=0, …
vanishka
  • 167
  • 2
  • 12
2
votes
2 answers

JIRA Python Project Category

I'm writing a python script and trying to get the project category using the jira-python package. If I retrieve the project using the API, there is a category object. However in the python script, if I try to get the category name element from…
2
votes
1 answer

How to retrieve the 'links' associated with a JIRA ticket using jira-python?

I am trying the following expression to retrieve data about a JIRA ticket with jira-python, including the links: issue = self.jira.search_issues("key=MYPR-11", fields=["links", "worklogs", "created","timetracking", "updated", "status", "Severity",…
Alex
  • 41,580
  • 88
  • 260
  • 469
2
votes
3 answers

Exporting > 1000 issues from JIRA

I am trying to export JIRA tasks via API and I hit a wall on excel due to JIRA only allowing a 1000 limit. I can do an export manually to CSV and get over 1000 results and was wondering if anyone had any luck with large JIRA exports via REST API and…
user1304228
  • 189
  • 1
  • 4
  • 12
2
votes
5 answers

Jira -Python Error

I was trying to run this jira script and its been a couple of hours can't quite figure out what the issue is. can someone help me. I get the following error. Traceback (most recent call last): File "mytest.py", line 2, in from jira.client import…
Greg91
  • 75
  • 1
  • 2
  • 11
2
votes
1 answer

List all issues within a project

How can I list all the issues within a project in Jira? I am able to list all the projects, but not sure how to list all issues within a project. This is how I list all the projects: #/usr/bin/python import jira.client from jira.client import…
user3580316
2
votes
1 answer

Create sub package without shadowing a global package

I'm working on a Python project where I've to communicate with the Jira API. I want to use the "offical" Jira client for Python which is available here. The package introduces a global namespace jira, meaning you have to from jira import JIRA to…
hek2mgl
  • 152,036
  • 28
  • 249
  • 266
2
votes
1 answer

Error while installing jira_python

I execute the following command pip install jira_python as per the documentation here - http://jira-python.readthedocs.org/en/latest/ I get an error - Could not find a version that satisfies the requirement jira-python (from versions: ) No…
Nick
  • 31
  • 11
2
votes
1 answer

How to use fields parameter to include custom fields with spaces in their name

I've been building my REST query by using this reference: https://docs.atlassian.com/jira/REST/latest/#d2e2713 What I've managed so far: I get it to return JSON for me based on the JQL in the URL. The problem I get: When I tell it what specific…
Johan
  • 1,940
  • 1
  • 13
  • 18
2
votes
1 answer

Fetch attachement id from jira attachment python

I am able to display the attachment from jira using python using issue.fields.attachment attach_list = issue.fields.attachment print attach_list print attach_list[0] print attach_list[1] Output : [
2
votes
2 answers

Mapping Resolution & fixVersion received via Python JIRA REST API to human-readable values

I need to pull information on a long list of JIRA issues that live in a CSV file. I'm using the JIRA REST API in Python in a small script to see what kind of data I can expect to retrieve: #!/usr/bin/python import csv import sys from jira.client…
K. Clark
  • 21
  • 3