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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Scriptrunner validator show error on transition without a screen Edited

I have a transition that does not use a screen. The transition has a Scriptrunner validator that runs. I need this validator to pop up with a custom error message if the validation fails, but at the moment, I can only get it to show this generic one:

 

"It seems that you have tried to perform an illegal workflow operation.

If you think this message is wrong, please contact your Jira administrators."

 

I have tried using the invalidInputException variable, but ScriptRunner tells me that that variable is undeclared. If I save the script anyway despite this error, I still do not see my custom error string.

 

I can't find any complete examples of how to use invalidInputException. Are you just supposed to assign it a new InvalidInputException then return False? Or are you supposed to throw it once it's assigned? Or something else?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

82 views 1 12
Read article

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