Can't insert HTML links in Adaptivist ScriptRunner simple validator error message

I am using the simpled scripted validator on the create transition in my workflow. I am checking to make a valid option is selected in a custom select field. If the option is invalid, the validator won't allow Issue creation and will display an error message at the top telling the user to go to a webpage for more info or to email someone.

I crafted a message with a simple html link and put it in the Error Message field, however, when I went to test it, the HTML anchors shows up as text.

"Please send an email to <a href='>" instead of "Please send an email to"

How do I insert links in the Error message or do I have to use a custom script? If so, how do I add an alert/error message at the top? What method do I call?

Thank you!

1 answer

Hello Yingbo.

This happens because the error message is a String, not not HTML.

You can still use the email, but I don't think we allow HTML tags there.

If you feel like we should include that capability, feel free to submit a feature request in our local productsupport site.



Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

113 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you