what I need is when the field "component" changed , it will fire an custom event . How can I implement this custom event ?
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.
Hello xin xin,
May I know what kind of custom event you want to perform once the field "component" is changed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.