Open ljay79 opened 5 years ago
I can't reproduce this. This is the schema for the custom field in our Server side JIRA for labels
{schema={custom=com.atlassian.jira.plugin.system.customfieldtypes:labels, type=array, items=string, customId=17094
}, navigable=true, orderable=true, custom=true, name=Projects Affected, clauseNames=[cf[
17094
], Projects Affected
], id=customfield_17094, searchable=true
},
I am able to set a single label, add multiple labels and delete labels..
This is the log from Stackdriver showing the payload when updating an issue.
fetchArgs: {payload={"update":{"comment":[{"add":{"body":"Updated by [Project Aid for Jira|https://github.com/ljay79/jira-tools]"}}]},"fields":{"labels":["test","two"]}}}
We should disable Sprints updating (which shows in your message above). Its still to buggy with the need for an integer ID.
Could you share the schema from your server instance? Could you find the payload in the logging as well?
Find attached the fiel schema of my used Jira Cloud Instance.
As the add-on is now published since early morning, i have used a individual google account with the production live add-on. Was able to reproduce the issue.
Notes:
fetchArgs: {
payload = {
"update": {
"comment": [{
"add": {
"body": "Updated by [Project Aid for Jira|https://github.com/ljay79/jira-tools]"
}
}]
},
"fields": {
"customfield_11121": "test_label2"
}
}
}
httpResponse: {"errorMessages":[],"errors":{"customfield_11121":"data was not an array"}}
Thanks for this - I will test.
I can reproduce locally and will work on this later this evening.
It only occurs when using a custom "label" field rather than the built in Jira Label field.
Thats correct. Only on custom "label" field.
Should have a fix soon - shall I start 1.2.1 branch for fixes?
sure
@paul-lemon he man, are you still working on this project?
@paul-lemon same issue pressing to me, could you please provide a solution for this?
New feature "Update Jira Issues" does fail on certain jira fields due to their expected format transmitted to the API during IssueUpdate.
Custom field: cField Labels
Jira Field Type: Labels (array of strings)
Error: