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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,739
Community Members
 
Community Events
185
Community Groups

How to make 2 fields mandatory on a worfklow transition using scriptrunner

Hello,

I am trying to make 2 fields mandatory on a workflow transition using a validator.  We don't have JSU, instead we use Scriptrunner.  I am using a simple scripted validator.  Below is the code I am using:

cfValues['Digital Initiatives', 'Innovation']

 

When I update the fields I still get the error message that the fields are required and it won't let me go any further.

 

1 answer

0 votes
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 30, 2019

Try the following instead:

cfValues['Digital Initiatives'] && cfValues['Innovation']

If you want each field to report that they are required separately, create 2 separate simple scripted validator, then you can customize the message and field for each.

The downside to using only scriptunner simple scripted validator is that by default users will not know the field is required until they submit it. Try using a behaviour at the same time to provide a visual clue. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events