Hi everybody!
I have a code that, when the status changes, transmits field values in Json format to another service, the code works fine, but there is a problem with passing an array of field values, now all values are transmitted as a string. How can I pass the values of a multiple choice field in the format ["1param", "2param", "3param"] ?
I will be grateful for any help
I managed to solve this problem using JSON array:
I can't tell exactly where you're trying to set multiple values to the same field in your API call, but I found a post that had code that seemed to work for some users:
https://community.atlassian.com/t5/Jira-Software-questions/How-to-save-values-to-a-multiselect-field-using-the-rest-API/qaq-p/1524820
Below seems to be the basics of what they included:
{
"fields":
{ "customfield_11201": [{"value": "Disclosure"},{"value": "SecondValue"},{"value": "ThirdValue"}]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, this is not exactly what I needed, I managed to solve the problem using JSONArray.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.