Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Get transientVars in scriptrunner behaviour

Deleted user Nov 02, 2018

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

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Tom Lister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 03, 2018

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

Deleted user Nov 06, 2018

Hey Tom!

Thanks a lot!

I'm now using getAction().id == xxx and it worked perfectly.

All the best

Marius

TAGS
AUG Leaders

Atlassian Community Events