Condition - Hide Transition from User based on Value from Multi Select List



I am having two transitions which I want to allow depending on the values of a Multi Select Field with these values:

  • a
  • b
  • c
  • d

Working Condition for Transition 1

Any of the following conditions:

  • cfValues['MyField'] != null && cfValues['MyField']*.value.contains("b") ^ cfValues['MyField'] == null
  • cfValues['MyField'] != null && cfValues['MyField']*.value.contains("c") ^ cfValues['MyField'] == null
  • cfValues['MyField'] != null && cfValues['MyField']*.value.contains("d") ^ cfValues['MyField'] == null

Now I want to show Transition 2 only if value "a" is the single value of that field.

How could i do that?

Appreciate any help.

Many thanks...

2 answers

This widget could not be displayed.

Hi Tibor,

You can do this using the Power Scripts add-on. Sounds like you are using ScriptRunner though so that may not be an option. If it is an option let me know and I can post code and/or video on how to setup.

This widget could not be displayed.

Of course you can do this with ScriptRunner, it's exactly what it was written for.

You just need a pair of conditions:

cfValues['MyField']*.value.contains("a") and  cfValues['MyField']*.size == 1

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 12 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

39 views 1 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you