Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiselect customfield json

Ģirts Lejasmeiers
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 7, 2021

Hello everyone,
I've recently have took over some JSONscripts for JIRA API. 
I have a question regarding multiselect field.
I am trying to fully automate multi select selection, but I cannot experiment with clients JIRA, that is the reason I am here.

I've gotten to point where all the bash scripts using ansible gives me:

 "customfield_1":[ 
{
"value":"checkbox 1"
},
{
"value":"checkbox 2"
}
],

I know this works, but it was not hard coded in script, so everyone who used the script had to go to clients JIRA, and manually uncheck the box if needed.
The question is, does this 

  "customfield_1":[ 
{
"value":"checkbox 1"
},
{
"value":""
}
],

 work and will it only check the first checkbox and will not brake anything? 
or it would be bether to try to find a way to get this:

 "customfield_1":[ 
{
"value":"checkbox 1"
}
},

 because I know that latter works, but I haven't find a way to generate script like that yet.

I have been trying for some time now to get this working, but having everything automated is the way to go.

Thank you and best regards

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events