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!
This actually works, I had the wrong project.... Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.