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

How to execute logic in the transition screen?

I'd like to do something like what's mentioned in this ScriptRunner example. However, I want to do this in a transition screen. I've tried the code in the example, but it doesn't seem to work in transition screens. I'm assuming that behaviours can't execute groovy code on a form, which is what a transition screen likely behaves like, if there was no significant event, such as changing a value before submitting. That's what JavaScript is for. How would I go about using ScriptRunner or JavaScript to replicate that example in a transition screen?

1 answer

1 accepted

1 vote
Answer accepted

The solution is to use "add a field" in the behaviour, and place the logic in the validator script. This script will execute whenever the field value changes, even if the value isn't saved, so just like a change event in javascript.

ok, thank. I think it is solution the best

Suggest an answer

Log in or Sign up to answer
TAGS

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