I have code that works fine to create an issue on some backlogs but on others, the labels are not set. There's no error from the JIRA server.
The JSON being sent looks like this:
{
"fields": {
"project": {
"key": "APAI"
},
"summary": "H2 PreWork",
"description": "test",
"issuetype": {
"name": "Task"
},
"labels": [
"SFQuality-H2",
"App",
"Testing-Preparation"
],
"priority": {
"name": "Medium"
}
}
}
The response that comes back has zero errors:
{"id":"1714366","key":"APAI-432","self":"https://ourjira.internal.com/rest/api/latest/issue/1714366"}
but when you look at the ticket, the labels are missing.
The identical code works fine on a different backlog.
And you can add new labels to this backlog if you edit the ticket/issue...it's not like it's blocking any new labels from being created.
Turned out it was because there was an automation rule on this backlog that mucked w/ labels (set them based on content in the ticket).
This caused it to blank out the labels that were sent in via the API :-(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.