I have 2 select fields in ServiceNow that I need to populate a cascading list in Jira Cloud. I can get the parent value populated but I cannot get the child value to populate.
Francis Martens (Exalate) commented on 18 March 2021
Can you check the value of replica.subcategory and look it up in the option list .
(Make sure there are spaces or other tricks which make it hard for the exalate to find the value)
Karen Jennings commented on 18 March 2021
When I use debug.info(“replica.subcategory is ${replica.subcategory}”) I get the the following:
[replica.subcategory is Decommission]
The available values on each side match. These were copied from ServiceNow into Jira when we set up this field. I verified there are no trailing spaces for any of the values on each side.
ServiceNow options:
Jira options:
When I look at the payload from ServiceNow it shows this:
"category": "Network",
"subcategory": "Decommission",
When I look at the Jira payload it shows this:
"Category/Subcategory": {
"id": 10036,
"name": "Category/Subcategory",
"uid": "10036",
"type": "CASCADING_SELECT",
"value": {
"parent": {
"id": "10024",
"value": "Network"
}
}
},
Is there something else I can check for the options?
Francis Martens (Exalate) commented on 18 March 2021
Oopsie
You should use the getCascadingSelect method - more about it here