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

script runner validation

I am trying to check if a comment is entered if a radio buttons is set to Yes in a simple script validator

cfValues['Will the overnight batch be affected']?.value != 'Yes' || cfValues['Effect on Batch?']

when No it transitions

when yes i get error pop up workflow error "It seems that you have tried to perform an illegal workflow operation."

i guess its because validator is now returning false,

how do i get an error message against field

JIRA 6.2.7

ScriptRunner 3.0.2

4 answers

Sorry I misunderstood the question. I suppose now you do not have a screen during the transition. So the solution is to associate a screen during the transition and then make sure that you set to display the error message in a field that exists in the screen that you just configured. Please let me know if you need further assisatnse 

yes that works - thanks!

I assumed the errors would be reported on the screen starting the transition

correction - ScriptRunner 3.0.7

I would suggest to use 'if' cases in order to test them, and then you can convert them easier to logical expressions more information on groovy truth.

Hi Thanos

If i just 'return false' i get the workflow error pop-up instead of the configured field error message

Suggest an answer

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

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

328 views 5 4
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