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
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

454 views 7 5
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