Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Newbie - Trigger Post function based on Value of Custom Field

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

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Alejandro Suárez - TecnoFor
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 28, 2020

Hi @ferns 

You can use the function "in" in groovy:

cfValues['Employee Classification']*.value in ["Full-Time", "Part-Time", "Temp", "Intern"]

Hope it helps :) 

TAGS
AUG Leaders

Atlassian Community Events