You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Good Day,
Running Scriptrunner on Jira SD Server Version. I am trying to set a condition on a post function to trigger if any of the 4 out of a total of 6 values are selected.
I currently have this working but would like to expand it to trigger if any one of the elow options are selected from a single select drop down.
cfValues['Employee Classification']*.value.contains("Full-Time")
Would like it to trigger if any of the below are selected and was no able to find the correct syntax to use:
Full-Time
Part-Time
Temp
Intern
Thanks in advance
Hi @ferns
You can use the function "in" in groovy:
cfValues['Employee Classification']*.value in ["Full-Time", "Part-Time", "Temp", "Intern"]
Hope it helps :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.