I'm trying to update an existing JIRA using the jira-python module (http://jira-python.readthedocs.org/en/latest/). Specifically I'm trying to set the fixesVersion list of an issue. I've been trying for a while with no luck. What am I missing?
issue = jira.issue('DUC-391')
issue_dict = { 'fixVersions' : [{'id': '10115'}] }
issue.update(fields=issue_dict)
Returned stackTrace:
Traceback (most recent call last):
File "post-commit-jira.py", line 35, in <module>
issue.update(fields=issue_dict)
File "/Library/Python/2.6/site-packages/jira/resources.py", line 193, in update
super(Issue, self).update(**data)
File "/Library/Python/2.6/site-packages/jira/resources.py", line 72, in update
raise_on_error(r)
File "/Library/Python/2.6/site-packages/jira/exceptions.py", line 29, in raise_on_error
error = errorMessages[0]