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: 

fire an custom event

xin xin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 3, 2014

what I need is when the field "component" changed , it will fire an custom event . How can I implement this custom event ?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -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 Champions.
June 3, 2014

You'll need to hack the core of Jira's workflow engine to do this. Changing component already throws "issue updated" from the edit screen, or whatever event you want if you do it in a transition. There's no support for more than one event being thrown and you can't customise "edit" without hacking the core code.

I'd forget it.

Write a listener that catches any "issue has changed" type events, checks the issue to see if component has changed, and then trigger whatever it is you wnat to do when component changes.

Or remove component from the edit screen and only let it change during transitions, where you can choose the event to fire.

0 votes
Haizelyn Casimiro
June 3, 2014

Hello xin xin,

May I know what kind of custom event you want to perform once the field "component" is changed?

TAGS
AUG Leaders

Atlassian Community Events