The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Cascading select Option value ''OWG" is not valid, create issue rest api

john homer
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!
December 19, 2023

Trying to create an issue through rest and only have one final required field to input and I can't figure out the format for cascading select.

{
"fields": {
"project":
{
"key": "Project"
},
"summary": "test PTR",
"issuetype": {
"name": "PTR"
},
"customfield_12721":"Problem Description",
"customfield_12709":"DesiredBehavoirText",
"customfield_12712":"RelatedText",
"customfield_12713":"WorkaroundTExt",
"customfield_12656":{ "value": "2" },
"customfield_12657":{ "value": "C" },
"customfield_12901":"Defect, Design",
"customfield_12901": { "value": "Defect", "child": { "value" : "Design"} },
"customfield_12720":{ "value": "Standard" },
"customfield_12710":"Test Sequence",
"customfield_12655":{ "value": "SW" },
"customfield_23600":[{"value": "Unrestricted"}],
"customfield_12658":{"value": "N/A"},
"customfield_12814":{"value": "OWG","child": {"value":"N/A"}}
}
}

{"errorMessages":[],"errors":{"customfield_12814":"Option value 'OWG' is not valid"}}

 

looking at the meta date I see

"customfield_12814":{"required":true,"schema":
{"type":"option-with-child","custom":"com.atlassian.jira.plugin.system.customfieldtypes:cascadingselect","customId":12814},
"name":"System-Subsystem","fieldId":"customfield_12814",
"operations":["set"],"allowedValues":[{
"self":"https://XXX/rest/api/2/customFieldOption/30831",
"value":"OWG","id":"30831","disabled":false,
"children":[{"self":"https://XXX/rest/api/2/customFieldOption/30832",
"value":"N/A","id":"30832","disabled":false}]}]},

https://XXX/rest/api/2/customFieldOption/30831
{"self":"https://XXX/rest/api/2/customFieldOption/30831","value":"OWG","disabled":false,"id":30831}

https://XXX/rest/api/2/customFieldOption/30832
{"self":"XXX/rest/api/2/customFieldOption/30832","value":"N/A","disabled":false,"id":30832}



I have found an article that is close to what I think I need but I can't get it to work

https://community.atlassian.com/t5/Jira-Software-articles/How-to-set-select-lists-single-multiple-cascading-radio-or/ba-p/1686871

Anyone have any advice on what I am doing wrong in the final CURL command?

Thanks!

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
john homer
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!
December 19, 2023

This actually works, I had the wrong project....  Thanks!