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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.