Hi, I'm trying to update the status from an issue via a python script. The Code looks like this:
issue = jira.issue('Issue ID') jira.transition_issue(issue.key, '51')
There are no errors, but the status remains the same. Am I missing something in the transition_issue command? Or do I need to be an admin to do this operation?
Using the JIRA interface, it works, only the script doesn't.
Community moderators have prevented the ability to post new answers.
The status update didn't work, because some fields needed to be filled with information to allow the update (They were also required in the JIRA interface).
so the code had to look like this:
issue = jira.issue('Issue ID') jira.transition_issue(issue.key, '51', customfield1 = 'some text', customfield2 = 'some text' , ... )
I am unable to use jira-python to merge tickets:
for t in transitions: if(t['name']=='Merge Ticket'): authed_jira.transition_issue(ticket, t['id'])
returns error: response text = {"errorMessages":[],"errors":{"issuelinks":"Please add the ticket you would like this ticket to merge with."}}
but when I specify the second ticket in the transition call it always refuses the ticket.: errors":{"issuelinks":"Field does not support update 'issuelinks'"}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, executing issue = jira.issue('Issue Id).key transitions = jira.transitions(issue) for t in transitions: print(t['id'], t['name']) returns: 51 Resolve Issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is '51' allowed transition for the project?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.