How to update JIRA issue reporter from Python

Question:

I’m trying to update the reporter of an issue using the JIRA Python API (version 1.0.3).

I am signed in (using basic auth) as a user who has full permissions, and I am trying to do it for an issue which I myself have created. The issue is successfully created, however when I call the update command, it changes the assignee rather than the reporter.

Any ideas? I have tried searching, but to no avail.

Here’s my full code:

jira = JIRA('http://jiraurl.com/', basic_auth=('user', 'pass'))

new_issue = jira.create_issue(project='ER', summary='summary', description='desc', issuetype={'name': 'Custom Issue Type'})

new_issue.update(reporter='new_user')
Asked By: erik

||

Answers:

The right syntax should be
new_issue.update(reporter={'name': 'new_user'})

The Jira documentation specify a similar example for the field assignee.

Answered By: Forge
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.