Hi.
I'm trying to create a new jira story using a dictionary in python. Everything works except the setting of the Fix Version/s field. Here is the code:
------------
def create_gen_jira_story(jira_project,summary,description,issuetype,assignee,labels,fixby,fixversion):
# Creates a general jira story with a pre-defined set of values. Uses a dictionary to build the story
issue_dict = {
'project': {'key': str(jira_project)},
'summary': summary,
'description': description,
'issuetype': {'name': issuetype},
'assignee': {'name': assignee},
'labels': [labels],
'customfield_10002': str(fixby),
'fixVersions': fixversion
new_issue = jira_con.create_issue(fields=issue_dict)
----------------
when I run the python script I get the following error:
response text = {"errorMessages":[],"errors":{"fixVersions":"data was not an array"}}
Question is - how can I set the "Fix Version/s" field?
If I remove the "fixVersions: fixversion" line the story is created correctly
Thanks