Forums

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

Cannot Fire a custom event

GilK
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 17, 2012

Hi,

When I edit a transition (any of them) in my workflow and trying to Add a post function, I get a lot of functions but not the function to Fire a custom event, or fire anything.

All the transitions already have JIRA default fire an event post function, but I'd like to add my own.

Any ideas?

Thanks,

Janiv.

2 answers

1 accepted

1 vote
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 17, 2012

You can fire your own event based on some condition using this workflow function from the script runner plugin.

GilK
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 17, 2012

Works great, thanks !

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 17, 2012

JIRA doesn't support mutliple events on the same post function. See https://jira.atlassian.com/browse/JRA-13738 for details.

You can either edit the default event and throw your event instead or catch the event in a listener and throw the custom event. The latter needs development.

MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2012

You could emulate this by having two statuses. Transition to the first one and fire the first event, then automatically transition to the second status and fire the second status. Perhaps with JIRA Toolkit Auto Transition Listener or using Jamie's approach at http://blogs.onresolve.com/?p=235

Antonio Duarte September 21, 2015

This is an info from 2012. Now, after several versions of JIRA, is it still true that JIRA supports only one 'Fire Event' in the same post-function, or this behaviour has changed? As Janiv, I also need to fire more than one Event in my post-function.

Suggest an answer

Log in or Sign up to answer