Forums

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

Cascading Field in Automation

Matthew Rutledge February 14, 2024

I am trying to create an automation rule which looks at a cascading custom field and looks at one parent option, with multiple child options.  At this time, I seem to only be able to have one parent and one child, or it fails.

example JQL query, working:  "*custom field name*[Select List (cascading)]" = cascadeOption("parent option", "child option")

I have tried using the IN operator instead of '=' and listing additional children after the first, but this gives me a JQL error.  

example list query, not working: "*field name*[Select List (cascading)]" IN cascadeOption("parent option", "child option", "2nd child option", etc)

I would really like to avoid writing out a large number of single parent, single child queries around this cascading field if at all possible.

Can I separate the child options in separate query or place them after another AND operator or something?  I have not seen anything up to this point in documentation related to this and am not sure how to proceed.  I have tried cascadeOption.child() and a couple other similar options, but none seem to work.

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
February 14, 2024

Hi Matthew,

At first glance, I would say try using an OR in the query like this:

 "custom field name[Select List (cascading)]" = cascadeOption("USA", "Tennessee") OR  "custom field name[Select List (cascading)]" = cascadeOption("USA", "Alabama")

Matthew Rutledge February 15, 2024

Thank you, I hadn't yet considered that.  I will give that a try.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira service management, devops, ship quality code, atlassian webinar, continuous delivery, integrated workflows, change management, developer productivity, agile teams, atlassian community events, ace, atlassian learning

Ship quality code faster with Jira Service Management ✨

In the wake of growing customer expectations, development teams are facing more pressure to deliver innovations faster. Register for this 45-minute webinar to learn how devs can accelerate software delivery and time-to-market with Jira Service Management.

Register now 🚀
AUG Leaders

Atlassian Community Events