We're in the process of migrating from Bugzilla to JIRA. In our Bugzilla instance, we have a custom drop-down field that lists a bunch of versions. That gets imported fine but as a JIRA custom drop-down. What I'd like to do, for each issue, is that the value of custom drop-down and put it in a new "version picker" custom field. I'm trying to use the jira-python client to do this but running into problem. See the code below. it doesn't error out when I do this but it's not updating the new version picker field. Any thoughts?
jira = JIRA({'server': DEFAULT_JIRA_SERVER}, basic_auth=(DEFAULT_JIRA_USER, DEFAULT_JIRA_PASS))
issues_to_mod = jira.search_issues('filter=filter_alerts', maxResults=200)
print 'Will update', str(len(issues_to_mod)), 'issues.'
for issue in issues_to_mod:
old_fixed_version = issue.fields.customfield_10105
old_fixed_version_string = str(old_fixed_version[0])
print 'Updating issue', issue, 'with value', old_fixed_version_string
issue.update(fields={'customfield_10400': {'value': old_fixed_version_string}})