You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.