I'm trying to use the python interface to transition the state of a set of issues in an automated fashion.
It's lless than clear to me how to even get an issue to go from say an open state to a todo or further in the the workflow.
jira.transition_issue(issue, '10000')
10000 came from jirashell and printing out the issue.fields.status.id value of a card which I'd taken from the open to the todo state. So by the logic I ought to be able via python to take a card in an open state and likewise transition it to 10000, aka todo. It fails with:
the error :
File "/usr/local/lib/python2.7/site-packages/jira/client.py", line 93, in wrapper
result = func(*arg_list, **kwargs)
File "/usr/local/lib/python2.7/site-packages/jira/client.py", line 1098, in transition_issue
url, data=json.dumps(data))
File "/usr/local/lib/python2.7/site-packages/jira/resilientsession.py", line 81, in post
return self.__verb('POST', url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/jira/resilientsession.py", line 74, in __verb
raise_on_error(r, verb=verb, **kwargs)
File "/usr/local/lib/python2.7/site-packages/jira/utils.py", line 120, in raise_on_error
r.status_code, error, r.url, request=request, response=r, **kwargs)
jira.utils.JIRAError: JiraError HTTP 500
text: Internal server error