The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Catching transition in ScriptRunner Listener

Alex
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Florian Bonniec
Community Champion
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
Contributor
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 Champion
November 25, 2024

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

Alex
Contributor
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 Champion
November 25, 2024

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

 

Regards