Catching transition in ScriptRunner Listener

Alex November 25, 2024

Hello everyone!

We have a transition in Workflow without status translation.

Is it possible to somehow track when such a transition is used in the ScriptRunner Listener event?

P. s. Post functions are not suitable for us 

1 answer

0 votes
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 25, 2024

HI @Alex 

 

You could create a custom event, trigger this event in the transition instead of generic event, and configure a Listener on this event.

 

Regards

Alex November 25, 2024

Hi @Florian Bonniec 

Yes, I guessed that I need to use Generic Event, but I don't quite understand how to extract transition from it. Maybe you have an example of how to extract it from event?

Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 25, 2024

You do not use Generic Event, but create a custom even and configure your transition to use the new event. 

Alex November 25, 2024

Ty, I figured it out, replaced the event in the post functions. It turns out that if something changes on the transition screen, then it will not be possible to pass changeLog along with this event?

Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 25, 2024

I think so it should be the same object as generic event.

 

Regards

Suggest an answer

Log in or Sign up to answer