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

Append to issue description using jira python API

I've been trying unsuccessfully to append to the description of a jira ticket using jira-python and the following code: updated_description = description + "/n" + JIRA_object.fields.description where JIRA_object is the object containing the ticket…
user2828776
  • 43
  • 1
  • 1
  • 3
0
votes
1 answer

How to find duplicate issues in Jira Rest API

I am using Jira rest API for python3.7. I am able to get the linked issues of Jira, i.e parent and child Jira relations to a particular issue can be identified. But I am not sure that how to find duplicate issues to a particular Jira. Below is the…
Rocky
  • 57
  • 6
0
votes
0 answers

Error: JIRA python API : "errors":{"customfield_10800":"The Team must be a string"}}

I am using JIRA python api to update JIRA I need to update customfield_10800 field. below is the code i used updatedict = { "customfield_10800": { "id": "485", "title": "Facilities IT", "isShared": True } } self.jira…
0
votes
2 answers

How can I move a subtask from one parent issue to another using jira-python

I am trying to move a Jira subtask to a new parent. I have tried the following, but the task is not moved and no error is raised. from jira.client import JIRA jira_client = JIRA(options={....}, ouath={...}) query = "...some JSQL query...." issues =…
dwjbosman
  • 906
  • 9
  • 33
0
votes
1 answer

jira.create_sprint() returns JiraError HTTP 500 No Content to map to Object due to end of input

Using python and jira==3.0.1 I receive the following error when attempting to create a sprint. JIRAError: JiraError HTTP 500 url: https://issues.redhat.com/rest/greenhopper/1.0/sprint/10875 text: No content to map to Object due to end of…
Eric
  • 636
  • 2
  • 9
  • 23
0
votes
1 answer

How to fetch status field, changed from and to in worklog of Jira through Python

I wanted to check if the status of Jira is changed from (eg. Resolved) to (eg. Closed) by the users I mention for the current date. I tried using issue.fields.worklog, then I also tried issue = jira.issue('issue id' , expand=changelog) This is the…
0
votes
1 answer

capture the Status change of JIRA issues through api

I'd want to capture the status change of the JIRA issues through Python APIs. See snapshot below. I'd used JIRA.transitions(issue_id, expand="transitions.fields") method, but this is not retrieving the these information. Any specic APIs that would…
0
votes
1 answer

Get list of all JIRA project milestones

I am trying to get a list of all project milestones in JIRA using the Python API. Example JQL is project =A100S AND labels = Milestone. This is what I tried: from jira import JIRA jira = JIRA(basic_auth=('username', 'password'),…
Hillash
  • 85
  • 1
  • 5
0
votes
1 answer

Unable to access "from" property of a JIRA item

I am trying to access the from property of an item while accessing JIRA. Python gives me a syntax error. What could be the problem? for history in changelog.histories: for item in history.items: if (item.field.upper() == 'SPRINT'): …
0
votes
1 answer

How to add (append) user in multiuser picker field using jira-python

I have been trying to append user to the existing multi-user picker field without replacing users in it. Ex: The Jira JQL finds the user rkapoor in the Testers field, then append rkapoor1 to the Testers field Note: The Testers field might contain…
0
votes
1 answer

How to set multi check box in jira using python

I actually want to enable First time Resolution check box via python which is displayed in the Resolved workflow in a separate window I could fetch the feild Id. I have tried many ways but couldn't succeed.(Python) here are few ways I have…
Annabelle79
  • 101
  • 1
  • 8
0
votes
1 answer

Unable to connect to JIRA using Python Plugin. "TypeError: expected string or bytes-like object"

I am using the JIRA Python plugin (https://github.com/pycontribs/jira#jira-python-library) to connect to JIRA with the below py code. I worked with Atlassian Python plugin as well with different py code but ended up with another error…
user3814614
  • 31
  • 1
  • 8
0
votes
1 answer

Populating hidden customfield via python jira

I´m using the python jira package to create and update issues in our self hosted Jira. Sometimes it happens, that issues are created without filling in all information. Because of that, customfields are empty after the creation. Later, people want…
simon
  • 83
  • 8
0
votes
1 answer

Inserting dynamic Acceptance Criteria into Customfield via Python

i am quiet lost currently. i want to load some data from my sqlite3 db and then create from this data some acceptance criteria and update the respective issue with these acc. The issue i have is that i dont understand where my problem is regarding…
Hauerli
  • 1
  • 1
0
votes
1 answer

jira-python getting custom field's value from an issue-link

I'm trying to get the value of an issue link's custom field. I know how to do it in a regular sub-task, but with issue-link, I can't get it. This is how I get a custom field's value in a Sub Task: getattr(issue.fields, name_map[fields[0]]) And when…
R.D.
  • 1
  • 1