Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Python Jira cannot transition_issue and throws exception

joe huang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 20, 2019
jira.create_issue_link('Duplicate', issue, issueJ, None)
jira.transition_issue(issueJ.key, '181')
query.remove(issueJ)

 The first sentence works, it creates a link. But the transition_issue not works and it throws and exception:

jira.exceptions.JIRAError: JiraError HTTP 400 url: https://xxxxxxxxxxxxx.net/rest/api/2/issue/ticket.number/transitions
text: The selected resolution cannot be chosen during this action.

response headers = {'Server': 'nginx/1.10.3', 'Date': 'Wed, 20 Mar 2019 09:37:33 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'X-AREQUESTID': '577x474155x4', 'X-ASESSIONID': '1fwn7w3', 'X-ANODEID': 'prd-dops-issues-ap-02', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'Content-Security-Policy': "frame-ancestors 'self'", 'X-ASEN': 'SEN-11553968', 'X-Seraph-LoginReason': 'OK', 'X-AUSERNAME': 'gongjunh', 'Cache-Control': 'no-cache, no-store, no-transform', 'Content-Encoding': 'gzip', 'Vary': 'User-Agent'}
response text = {"errorMessages":[],"errors":{"resolution":"The selected resolution cannot be chosen during this action."}}

 Not sure if anything wrong about the code.

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
January 7, 2021

Please, add transition screen with Resolution field

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events