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 you set the fixVersions field using jira-python

I'm trying to update an existing JIRA using the jira-python module (http://jira-python.readthedocs.org/en/latest/). Specifically I'm trying to set the fixesVersion list of an issue. I've been trying for a while with no luck. What am I missing? issue…
smm100
  • 113
  • 1
  • 2
  • 8
1
vote
1 answer

I want to create an issue and link it with an existing Epic at the same time, I want to use name

Create an issue using the JIRA python API and link it with an existing Epic using the epic name and not the ID. I also want to use the name for assignee rather than using the id of the assignee. It would be super helpful if anyone could answer…
rgk
  • 11
  • 1
1
vote
1 answer

Get users' email with Jira Python Library

I've been trying to get the email of a Jira user other than my own with the Python3 Jira library, but couldn't do it. It either gives me an error, saying I don't have enough permissions to get it, or only returns me simple information, like display…
Ranieri
  • 11
  • 3
1
vote
0 answers

JIRA API to List Jira users added from date

I want to list all the users who were added from date.I have a code like this from jira import JIRA jira = JIRA('', basic_auth=('username', 'password')) users = jira.search_users(".") for user in users: …
Panda
  • 513
  • 2
  • 11
1
vote
1 answer

Jira-Python - Specify API version?

Using Jira-Python, how do you specify the API versioning that the issues= command sends? i.e., https:///rest/api/2/search? vs. /api/latest/search ...
Tony
  • 8,681
  • 7
  • 36
  • 55
1
vote
2 answers

AttributeError: 'PropertyHolder' object has no attribute - Python JIRA API

I am trying to export all comments in excel from issues of a Jira project using python. I have used following Comments_list.append(issue.fields.comment.comments) for comment in Comments_list: ws.cell(row=comments_row,…
OliAK
  • 73
  • 8
1
vote
1 answer

How to connect to JIRA api with 2fa enabled by organization?

I use self hosted Jira and I'm currently trying to connect to the Jira api using a python script (and the requests library) having 2fa enabled by my organization. I'm not an admin of the project and after creating a personal access token and using…
Liz
  • 11
  • 3
1
vote
2 answers

Assign a existing jira ticket/issue to a user in Python

I'm trying to assign a existing jira ticket using python. Tried the below methods , but none are working. I'm able to add comments but not assign the issue #Method 1 Using Jira library - Getting JiraError HTTP None, text list index out of range …
Vinayak
  • 45
  • 4
1
vote
1 answer

How to see what can be set/updated on an issue?

I'm trying to use the JIRA Python API to create and update issues on different projects. Currently I'm after timetracking but I've seen other fields that cannot be set on this or that project getting the error message: ... cannot be set. It is not…
ewerybody
  • 1,443
  • 16
  • 29
1
vote
1 answer

How create a subtask in jira automatically in case of build failure in Bamboo

I have an Automation test project in Bamboo, For each build failure, I need to create a subtask in Jira. How I can achieve this goal through automation. Is it possible to write a shell script for this case?
Arijit
  • 69
  • 1
  • 10
1
vote
1 answer

Jira REST API - Fetch all users data from a resource

I am trying to fetch a resource of All users list in Jira, but Jira API sends list of only 50 users. I want to fetch list of all users. How can I do it? endpoint: https://myurl.atlassian.net/rest/api/3/users/search Response (only 50 users, not all…
Aashutosh Kumar
  • 615
  • 9
  • 13
1
vote
1 answer

Ticking Checkbox Upon Issue Creation via REST API - Jira Python

I would like to seek help on ticking checkboxes upon issue creation via rest API. I have three checkboxes: CheckBox1 CheckBox2 CheckBox3 Each checkbox have same name ,customfield_10000 , but different id. CheckBox1 - id : customfield_10000-1 | value…
arjay0601
  • 475
  • 2
  • 8
  • 16
1
vote
1 answer

Update Comment Author and Created using Jira python library

I have been able to create a comment but can't firgure out how to create it with a particualr author and timestamp. Ayone figure this out? This creates the comment: newComment = jira.add_comment(newIssue, strComment) Now I can't find a way to…
1
vote
1 answer

Python Jira api JQL query error: The character '%' is a reserved JQL character

I'm using Python 3.9 and this Jira python API https://jira.readthedocs.io/en/latest/index.html and I'm having this error when searching for issue: The character '%' is a reserved JQL character. The problem is that the implementation of this api…
Andrea Bellizzi
  • 497
  • 5
  • 14
1
vote
1 answer

How To Dynamically Use User Input for Jira Python

So I am trying to make an interactive method of pulling out Jira information, based on a Jira Key. Full Code: import os from atlassian import Jira import json with open('secrets.json','r') as f: config = json.load(f) jira_instance = Jira( …
R. Barrett
  • 685
  • 11
  • 34