Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
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.
ServiceNow outgoing sync:
replica.category = entity.category
replica.subcategory = entity.u_subcategory
Jira Cloud incoming sync
issue.customFields."Category/Subcategory".value = nodeHelper.getCascadingSelect(
nodeHelper.getOption(issue, "Category/Subcategory", replica.category),
nodeHelper.getOption(issue, "Category/Subcategory", replica.subcategory)
)
ServiceNow is sending the info because when I use debug.info("replica.subcategory is ${replica.subcategory}") I get the the following:
[replica.subcategory is Decommission]
This works the other way. I can get the cascading list to populate 2 separate fields in ServiceNow
Jira outgoing sync
replica.customFields."Category/Subcategory" = issue.customFields."Category/Subcategory"
ServiceNow incoming sync
//Category
entity.category= replica.customFields."Category/Subcategory"?.value?.parent?.value
//Subcategory
entity.u_subcategory = replica.customFields."Category/Subcategory"?.value?.child?.value