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
1
vote
2 answers

ImportError: No module named jira

Hi I'm running a python script that transitions tickets from "pending build" to "in test" in Jira. I've ran it on my local machine (Mac OS X) and it works perfectly but when I try to include it as a build task in my bamboo deployment, I get the…
Karsten Andersen
  • 115
  • 5
  • 16
1
vote
2 answers

How to get the attachment link and attachment id in jira-python 1.0.7?

i am using JIRA-python 1.0.7. Given a particular issue i am trying to get the attachment id and attachment uri. the JIRA-python document says that i can access the attachment with the following…
Hemaa mathavan
  • 348
  • 4
  • 15
1
vote
1 answer

List issue creation and resolved time

I am trying to find out how I can list issues with their creation and resolved time. The changelog as shown below does not list the creation time for the issue and resolution time. How can i retrieve that data? #!/usr/bin/python import…
user3580316
1
vote
1 answer

Error with "pip install jira"

With the documentation at: https://pythonhosted.org/jira/#installation It says: The easiest (and best) way to install jira-python is through pip: $ pip install jira This will handle the client itself as well as the requirements. When I try that I…
user1256378
  • 712
  • 2
  • 12
  • 31
1
vote
1 answer

Possibility to read out search filters using jira-python

Is there another possibility to gather information about issue search contents as stated below? My first attempt was: for i in jira.search_issues('filter=filterID', startAt=0, maxResults=2500): print(i.fields.duedate) The index i resembles the…
Hüftl
  • 211
  • 2
  • 12
1
vote
0 answers

Python-Jira package

I am new to Jira-Python module. I am using below snippet to connect to my jira server. try: print "Connecting to JIRA: %s" % jira_server jira_options = {'server': jira_server, 'verify':False} jira = JIRA(options=jira_options, …
1
vote
1 answer

Using libraries in in-proc hook for Hg/TortoiseHg

I'm trying to create an inproc hook written in Python for Hg/TortoiseHg. It supposed to parse the commit message and do custom operations on JIRA based on it. I'm trying to use http://jira.readthedocs.org/en/latest/#python-jira as jira API. It…
Archeg
  • 8,364
  • 7
  • 43
  • 90
1
vote
1 answer

How to assign project category to a project using JIRA rest apis

How to assign project category to a project using JIRA rest apis. My Jira server version is 6.3.13
Pradnya Mhatre
  • 208
  • 2
  • 8
1
vote
2 answers

Python - JIRA - Modify Labels

Having an issue updating / modifying a JIRA issue's labels. I've tried both of the below variations from the jira module documentation: issue.update(labels=['AAA', 'BBB']) OR issue.fields.labels.append(u'new_text') issue.update(fields={"labels":…
propjk007
  • 655
  • 1
  • 10
  • 18
1
vote
2 answers

JQL to retrive specific columns for a cetain label

I have limited experience with Jira and Jira query language. This is regarding JIRA Query language. I have a set of 124 rows (issues) in Jira that are under a certain 'Label' say 'myLabel'. I need to extract columns col1, col2 and col5 for all of…
qre0ct
  • 5,680
  • 10
  • 50
  • 86
1
vote
1 answer

Unable to connect via jira-python

Racking my brain over this. Just signed up here because I was having so much trouble with this. Here is my super simple code: from jira.client import JIRA jira_user='username' jira_pass='password'…
1
vote
1 answer

Best way to fix using a reserved JQL keyword in a JIRA query?

I am trying to write a JIRA query to query a bunch of defects. The problem I am having is that if there is a JQL keyword in the list of defects I am querying, the entire query fails and spits out the following error: JiraError HTTP 400 - text: Error…
Andrew
  • 1,355
  • 2
  • 13
  • 28
1
vote
1 answer

How to get default component through jira-python

I have been trying to programatically retrieve the default component set for a JIRA project with little success. Currently, I have tried jira.createmeta('PROJ_NAME') and jira.project('PROJ_NAME') Trying to understand the API output is troubling.…
Andy
  • 942
  • 1
  • 10
  • 23
1
vote
0 answers

Creating issue via JIRA API with python gives HTTP 400 error

Im new to python and trying to create simple script that will creates new issue in JIRA. Not sure what's wrong in my code. from jira.client import JIRA options={'server': 'https://jira.my_jira.com'} jira=JIRA(options,basic_auth=('user',…
1
vote
1 answer

Get sprints associated to a given board using JIRA Python library results in error

I'm trying to get the list of sprints associated to a given board (as described in JIRA Python module documentation examples): sprints = gh.sprints(board_id) where board_id is the ID of the board to be retrieved (1175 for reference), previously…
fgalan
  • 11,732
  • 9
  • 46
  • 89