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

How to edit/update comment in Jira(Python)

I am trying to edit a comment in jira using jira-python, but I couldn't find anything. I know add_comment will add a comment, but I also want to know how to edit a comment.
Keith Zhen
  • 45
  • 1
  • 1
  • 10
3
votes
3 answers

Retrieve start date and end date of a JIRA sprint using the python JIRA library

Is there a way to get the start and end date of a sprint in JIRA using the python JIRA library? I can get a jira.client.ResultList with all the sprints within the board of interest using jira.sprints(jira.boards()[
Mario Christov
  • 141
  • 1
  • 8
3
votes
3 answers

python-jira unable to return JIRA object key

I am working on a tool for Jira using the python-jira library. def find_ticket_key_by_name(search_string): global jira result = jira.search_issues('project=FSA and status != Done and summary ~ "HOST TESTER-APP:SERVICE1-SERVICECOUNT" order…
Arturski
  • 1,142
  • 3
  • 14
  • 26
3
votes
2 answers

JIRA: Update sprint status using python-jira lib

Im' try to create a periodic task that close a print and launch the next. What I'm planning to do is to find the current Sprint ("state":"ACTIVE") and update its state to ("state":"CLOSED") and take the next Sprint and update it from FUTURE to…
Zatla00
  • 419
  • 3
  • 17
3
votes
0 answers

jirashell throws a "KeyError: u'consumer_key'" and does not start

I am new to jira-python and have run into an issue with using jirashell. jira-python was installed from documentation given here: http://jira.readthedocs.org/en/latest/ When I try to start jirashell using: ubuntu@ip-10-0-0-12:~$ jirashell -s…
coderjay
  • 41
  • 1
  • 3
3
votes
1 answer

Set priority, due date while creating JIRA issue in python

I want to create a jira issue in python. I know how to set the summary, issue type, description and project name but I can't find how to set priority, due date, environment and other fields. This is what I know: new_issue =…
Sibtain
  • 1,436
  • 21
  • 39
3
votes
2 answers

In the Jira Python API, how can I get a list of all labels used in a project?

I am using the python API for Jira. I would like to get a list of all the labels that are being used in a project. I know that issue.fields.labels will get me just the labels of an issue, but I am interested in looping through all the labels used…
PS376
  • 539
  • 8
  • 13
2
votes
1 answer

Unable to fetch the jira cloud assets through atlassian-python-api

I am working on a Atlassian Jira cloud product. I have a requirement to get the details of Jira cloud assets and update a field with some specific key-value pair. To achieve same, I have chosen python api to interact with Atlassian jira cloud and do…
2
votes
2 answers

Jira api to search all issues in Jira using python

I want to list/search all the issues in Jira. I have a code like : url = 'https://company.com/rest/api/2/search' auth = HTTPBasicAuth("username", "password") // I tries token as well headers = { 'Accept': 'application/json' } query = { …
Panda
  • 513
  • 2
  • 11
2
votes
1 answer

How to get the status of the pull request of an issue in jira via python

I am not able to understand how to fetch the status of the pull request via Python jira API. I have gone through https://jira.readthedocs.io/en/latest/examples.html, and searched the internet for it. But I was not able to link the jira issue with…
Rocky
  • 57
  • 6
2
votes
1 answer

how to store results of jira.search_issues in DataFrame

I am using jira.search_issues to get all the issues in a project and now to print status of each issue I have to loop through return object. Instead I want to store all of them in a DataFrame. Is this possible? If yes, How?
PythonDeveloper
  • 289
  • 1
  • 4
  • 24
2
votes
1 answer

Appending information to existing description in Jira Python

I am trying to use jira-python for creating and updating existing issues. I wanted to know whether we can append information to existing description. I tried to use issue.update, but it overwrites existing description. Please let me know whether…
VP123
  • 55
  • 5
2
votes
1 answer

How to move a jira ticket from one project to another using API/python module

I've been following the JIRA python module guide on https://jira.readthedocs.io/en/master/ I couldn't find a way to move a ticket/issue from one project to another, or perhaps change the issue type from subtask to a task. Is there a way to do this…
2
votes
1 answer

Python Jira: Get version release date by version name

I've below code to read fix version name: from jira import JIRA jira_options = {'server': 'URL'} jira = JIRA(basic_auth=('username', 'pwd'), options = {'server': 'username'}) fix_version = getparsedstring(issue.fields.fixVersions) #since fix…
Karthick Raju
  • 757
  • 8
  • 29
2
votes
1 answer

Creating Jira issues through Python script: trouble with component, duedate and fixversion field EDITED

I'm currently writing a simple Python script which reads data from an Excel sheet and creates Jira tasks based on that data. I've got the Excel data-reading part working and the Jira task creation mostly as well, but am struggling with a couple of…
1 2
3
19 20