The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error Message with SIL Validator

haa
February 1, 2021

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
said kouzibry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 25, 2021

In sil you would do it like so :

return false, "fieldName", "Error message;