I am trying to perform a simple status transition using the jira python library as follows:
jira_client.transition_issue(issue, "Start Work")
I get the following exception but the transition does succeed!
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/jira/client.py", line 1554, in transition_issue
transitionId = int(transition)
ValueError: invalid literal for int() with base 10: 'Start Work'
During handling of the above exception, another exception occurre
Traceback (most recent call last):
File "./move_issues.py", line 58, in <module>
update_issues("Test Sprint 1", "Reopened", "Closed", "1.0.0")
File "./move_issues.py", line 51, in update_issues
jira_client.transition_issue(value, "Start Work")
File "/usr/local/lib/python3.6/dist-packages/jira/client.py", line 126, in wrapper
result = func(*arg_list, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/jira/client.py", line 1559, in transition_issue
raise JIRAError("Invalid transition name. %s" % transition)
jira.exceptions.JIRAError: JiraError HTTP Invalid transition name. Start Work
The behavior seems totally random cause the above takes place in a for loop and for another issue, (in the same loop!) the error is not thrown!
edit: for some reason it seems to be related with the issues being transitioned in a for loop; When I do this one by one everything seems to work OK. What is the reason behind this;
Do I need to close and re-open the client connection each time?
I'm noticing the same behaviour... This is not good!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.