Forums

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

Is it possible to show only a few values from a cascading field using an automation script

Kris
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!
February 25, 2025

 

 

 

 

 

 I have the following issue.

I have a cascading field with the following options and sub options

  • A
    • 1a
    • 1b
  • B
    • 2a
    • 2b
  • C
    • 3a
    • 3b
  • D
    • 4a
    • 4b

And I have a custom field  related to groups

  • Group A
  • Group B

I now want to setup the following automation rule

When I select Group A , I only want to see option A & B  from the cascading field

When I select Group B, I only want to see option C & D from the cascading field

(I still need to be able  select the sub options that belongs to the options)

Can I configurate this with automations rules  or can I do this with scriptrunner?

Or is this not possible at all 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Darryl Lee
Community Champion
February 25, 2025

Hi @Kris and welcome to the Community!

think this should be possible using Behaviours, which is part of Scriptrunner.

There's an example on how to Dynamically show or hide a field based on another field's option.

So the trick is figuring out how to hide options.

Oh, nice. There's a setOptionVisibility function for that.

Since you're focused on hiding top-level select options, maybe that will be enough, but you'll have to give it a spin, and if it doesn't work, I'm guessing the fine folks at Adaptavist support ought to be able to help you out.

TAGS
AUG Leaders

Atlassian Community Events