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

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 Leaders.
August 25, 2021

In sil you would do it like so :

return false, "fieldName", "Error message;

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events