I am using the JIRA Python REST API to create an issue in JIRA, but I don't know how to set the date created and date updated fields for an issue, as well as format the date to how JIRA wants it. My is code below:
jira.create_issue(project={'key': 'DEL'},
created='10/4/2012 9:30:00 AM',
updated='12/22/2012 10:00:00 AM',
priority={'name': 'Critical'},
summary='My summary',
description='My description',
issuetype={'name': 'Bug'})
It gives me the annoying error that it doesn't even recognize the fields even though they exist (reference: http://jira-python.readthedocs.org/en/latest/index.html):
JIRAError: HTTP 400: "{u'updated': u"Field 'updated' cannot be set. It is not on the appropriate screen, or unknown.", u'created': u"Field 'created' cannot be set. It is not on the appropriate screen, or unknown."}"
