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

Hey, 

 

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

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.

0 votes

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,006 views 4 9
Read article

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