I'm trying to create an issue of type "Bug" with a custom field called "customfield_10040" but I'm getting an error
error message: {"errorMessages":[],"errors":{"customfield_10040":"Specify a valid 'id' or 'name' for Severity"}
Here is a code which I tried:
fields = {
"project": project_name,
"issuetype": issue_type,
"customfield_10040": [{"id":11938}],
"priority": priority_type,
"summary": summary,
"description": description,
}
print(fields)
new_issue = jira.create_issue(fields=fields)
while looking into the previously created issues via Jira UI my custom field values are looks like the below,
"customfield_10040": {
"value": "Severity-2",
"id": "11938"
}
But I'm getting the same error while using the correct id as mentioned in the customfield_10040.