It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to hide the other custom field based on the options selected in cascade select list field using behaviour?

We have 2 fields A, B.

A- cascading select list. (options :a:1, a:2)

B- text field.

If i choose a:1 the field B should be hidden.

We use behaviour plugin for this but it is not working.

def A= getFieldByName("A")

def B= getFieldByName("B")

log.debug("A" + A.getValue())

if (A.getValue() == ["a":"1"])

{

B.setHidden(true);

}
else
{
B.setHidden(false);

}

Please let us know how to achieve it.

1 answer

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

1,075 views 7 0
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you