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
0 answers

Updating radio button field on JIRA using Python

I am trying to update radio button fields in JIRA using python logic by building a dictionary. After I built the dictionary, when I try to create issue in JIRA, I am getting an error message - 'customfield_10543': "Option id 'null' is not…
vvazza
  • 421
  • 7
  • 21
1
vote
1 answer

Not able to generate JWT token for python zephyr

I'm unable to generate valid JWT token for the below endpoint: https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/cycle/cycleId/export?versionId=&exportType=&projectId= I have the cycleId passed as parameter and rest query arguments…
1
vote
0 answers

Jira Python custom field values and attributes

I have a question. I work with Jira via Python and there was a need to get the value of the Insight object, which is located in the custom field. For example: Custom Field: Human, customfield_10123. Objects available for selection in this…
melnykoe
  • 11
  • 1
1
vote
2 answers

getting error on updating assignee and comment field in JIRA using python

I am using python to automate JIRA process, while doing I am unable to update Assignee and Comment fields. While updating Assignee field, not getting any error, but the value is not updated properly, I am trying to assign from one user to other…
1
vote
1 answer

f-string in Python with the atlassian-python package. Gives bad request

I'm trying to fetch all issues in JIRA for all projects. When doing the call one at a time, it works perfect. When trying to run it in a for loop I'm prompted with a 400 Client error. The way that works: results = jira_instance.jql("project = FJA",…
Berimbolinho
  • 465
  • 1
  • 6
  • 16
1
vote
1 answer

Get some user's team with Jira Rest API by their accountId

I'm using the JIRA rest API in order to get the team of some user by passing their accountId as a parameter in the URL, for example: URL = "https://my_account.atlassian.net/rest/api/3/user?accountId="+userId+"/team" But I'm getting the error: "404…
ljuk
  • 701
  • 3
  • 12
1
vote
1 answer

Fetching entire changelog for an issue in JIRA using jira-python

Using jira-python, I want to retrieve the entire changelog for a JIRA issue: issues_returned = jira.search_issues(args.jql, expand='changelog') I discovered that for issues with more than 100 entries in their changelog I am only receiving the first…
John Carter
  • 6,752
  • 2
  • 32
  • 53
1
vote
2 answers

unable to perform search on custom_field(JIRA-Python)

I'm getting the below error when I search on custom_field. {"errorMessages":["Field \'customfield_10029\' does not exist or you do not have permission to view it."],"warningMessages":[]} But I have enough permissions(Admin) to access that field.…
chatrapathi
  • 107
  • 8
1
vote
1 answer

Receiving 204 respond while jira updating

I don't understand why I receiving of 204 respond when I want to update one field at a Jira instance ? Could you please to help me ? import requests server = 'https://myjira.com' endpoint = '/rest/api/2/issue/' auth = ('login',…
ppostnov
  • 139
  • 9
1
vote
0 answers

printing priority and resolution in jira

I need to print only priority and resolution and the records $startAt =0 to &maxResults=1000. I see that this can't be archived by executing query anyone please help me attaching the code' from Atlassian import Jira Jira = Jira( …
1
vote
2 answers

Jira-Python project key

I'm using jira-python to access jira projects. I'm trying to pass a numeric key (which is not the project id) as a parameter. myProject = jira.project("100") However, I get the following error: response text = {"errorMessages":["No project could be…
ghostwar 88
  • 547
  • 1
  • 6
  • 17
1
vote
1 answer

Python JIRA rest api - Filter changelog

I can read JIRA issue's change log in python like below changelog_response = requests.get(self.JIRA_URL + 'rest/api/2/search?jql=key=' + key_value + '&expand=changelog&fields=""', …
Karthick Raju
  • 757
  • 8
  • 29
1
vote
1 answer

Jira Python API to insert comment with WIKI formatting

While using jira python module to add comments, is there a possibility to insert comments using WIKI markup? I noticed some example showed REST API calls with representation:wiki can do this. But I noticed current python Jira only supports plain…
Narain
  • 872
  • 9
  • 11
1
vote
2 answers

How do I get display names from a custom field in Jira-python?

I am using the jira rest api in python (jupyter notebook) and want to get the display name of a custom field from Jira. The custom attribute I am using represents Team Name in Jira. ex. 202 = "A Team", 204 = "The Brew Team", etc. when I for loop I…
1
vote
2 answers

Using python to loop through the creation of tickets in jira

I am looking at bulk creating tickets within Jira through python using the JIRA module. I am taking the user inputs to insert them into a dictionary which then creates the ticket within my project in JIRA. This all works fine and the ticket gets…
Mattidge
  • 83
  • 8