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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error Message with SIL Validator

When I use the Regular Expression Check (JSU) validator I can set an error message.
According to
https://community.atlassian.com/t5/Jira-questions/Why-does-the-validator-not-show-the-error-message-on-Field/qaq-p/1376065

you can show a message when in the validator with in ScriptRunner


throw new InvalidInputException("message")

 How do I do that in a SIL script?

How do I do this when validating fields in SIL script?

 

1 answer

In sil you would do it like so :

return false, "fieldName", "Error message;

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you