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 edited

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

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!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events