Hello
Is it possible to retrieve the transition ID when a transition screen is shown and a behaviour would run on it? How could I do that?
I have a couple of transitions which use the same screen. Depending on the transition, I would like to set different default values for a field on that screen.
Best Regards,
Marius
Hi @[deleted]
you can use methods
getActionName()
or getAction() for the ActionDescriptor from within a Scriptrunner behaviour when the screen is used by a workflow action.
This will throw an exception if the screen is used outside of a workflow so enclose in a try/catch block
Tom
Hey Tom!
Thanks a lot!
I'm now using getAction().id == xxx and it worked perfectly.
All the best
Marius
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.