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
0
votes
1 answer

jql query in jira only returning two fields

I am trying to do a query that will return the contents of the summary field in Jira. Jira doesn't allow the use of "AS" in jql and not finding anything useful in the documentation. response = jira.search_issues("project=projectName and…
JP Hochbaum
  • 637
  • 4
  • 15
  • 28
0
votes
0 answers

How can I automate the "Click this URL to provide authorization" part of JIRA oauth?

I have the Oauth flow setup, and it works just fine, but my issue is this part: STEP2: AUTHORIZATION Visit to the following URL to provide authorization: https://jira.me.com/plugins/servlet/oauth/authorize?oauth_token=c6shAreuL Before…
MrDuk
  • 16,578
  • 18
  • 74
  • 133
0
votes
1 answer

python-jira : how to get worklogs list without neither an issue name/key nor an user?

I would like to get the worklogs list from my Jira without specifing an issue. Yet I have: jira = JIRA(basic_auth = ('username', 'password'), server='server_name') issue = jira.search_issues('key=ISSUE-XXX')[0] wklog = jira.worklogs(issue) and I…
0
votes
1 answer

resolve ticket as fixed with python jira api

import jira def resolve_issue(jira,issue): jira.transition_issue(issue, '5', assignee={'name': 'pm_user'}, resolution={'id': '3'},comment={'name':"Resolved the ticket."})) [(u'5', u'Resolve Issue'), (u'821', u'Request Info'), (u'1011',…
0
votes
1 answer

Passing jira description as html code

I am trying to understand how can I pass html code to be rendered in python description field using python-jira. If anyone can explain what is told in this link paragraph 4 and adding simple working example I will be grateful.
JavaSa
  • 5,813
  • 16
  • 71
  • 121
0
votes
1 answer

Jira-Python : How can we fetch the commentor name by passing object?

I'm trying fetch the data of commentor name in the recently updated issue. I'm saving the updated issues in a list, when I'm passing the list in the query it gives me : AttributeError: type object 'PropertyHolder' has no attribute 'comment', even…
0
votes
0 answers

Jira-Python: Unable to pass the user input in jira.search_issues?

I'm not able to pass the user input into JQL query? I've tried no of alternative but nothing works. Here is the code. project_name=raw_input("Please give the project name: ") reporter_name=raw_input("Please provide the name of creator: …
0
votes
4 answers

JIRA Python Setting Labels

I am trying to set the labels field for a JIRA ticket in Python using the jira-python API. With a valid JIRA issue object, created with issue = jira.issue(jira_ticket), I have tried the following: issue.update(labels='AAA'): gives a not on the…
M1GEO
  • 223
  • 4
  • 11
0
votes
1 answer

Jira: Producing a report containing the stories & blocking issues associated with a release

The Company I work for uses Jira to support the requirement capture & test phases of a project. We assign stories (i.e. requirements) to a release. As a Test Engineer, I raise bugs which I then reference in the story as "Is Blocked By". I need to…
0
votes
1 answer

Jira-Python Update Epic Link

I am writing a script that automatically sets properties of issues in JIRA. I am able to set just about any field for an issue except for the epic link after the issue already has one. The following line returns a 500…
0
votes
1 answer

Fetch bug status on JIRA using Python-Jira

I am trying to write a script to fetch the status of a bug on JIRA, import jira.client from jira.client import JIRA options = {'server': 'https://:/', 'verify': 'path/to/id_rsa.pub'} jira = JIRA(options, basic_auth=('username',…
user5154816
0
votes
1 answer

Share filter with jira-python

I use jira-python and Python 2.7. I would like to know if it is possible to share one of my jira filters using this API. I can change its name, query and add it to my favorites list, but how do I share it with other users?
Fredrik
  • 598
  • 1
  • 5
  • 22
0
votes
1 answer

Nested Jira Search on two independent projects

I need to get a nested Jira search. I am okay with JQL query but I have a usecase that I don't know how to solve Company uses project=XTBOW for reporting purpose for executives (Epic) The company also uses project=XTA for underling development work…
Karun
  • 561
  • 7
  • 23
0
votes
1 answer

Setting Date Time Picker Jira field values with jira-python

Story: I am using the jira-python api library to create issues in JIRA. I created a custom due date field for my issues (customfield_10300 in code below). This custom field is a Date Time picker. Problem: The code below tries to creates an issue…
dredbound
  • 1,579
  • 3
  • 17
  • 27
0
votes
1 answer

JIRA Python Setting Cascading Select Values

I am using the jira-python library to create an issue in JIRA. However I cannot get the syntax right for setting Cascading Select values. The code below creates an issue and works for the first(parent) select in the cascading select but not the…
dredbound
  • 1,579
  • 3
  • 17
  • 27