Is it possible - without writing my own plugin - to catch every "Save" (Update) event and firing a script?
As I see it, events and notifications are only during transitions, but I would like to catch every "update" and fire a groovy script or similar - like creating a LISTENER to fire a Groovy/Jelly
BR.
Normann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, and you're wrong about events and transitions.
Events are thrown by EVERY change to an issue. Not just transitions. Issue commented by comments (no transition there), issue update by any change of fields (no transition there), and so on...
And "no" because you need to write *something* to catch the events and trigger any actions. You don't necessarily need to write your own plugin - the script runner allows you to write listeners inside itself for example, but you still need to write something in there to perform any actions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick reply, Nic.
Here is what I need to accomplish, there's a JIRA field and I want to validate the content based on some logic, before user can save the changes on the submit/update form. There are several validator plugin on the market, but I don't think they meet my needs. I think the only approach is to write a custom plugin in JIRA. Wondering how to get started on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Simple "get you started" answer - use the Atlassian SDK to write a validator plugin. I don't know how familiar you might be with coding, but start at https://developer.atlassian.com/display/JIRADEV/Workflow+Plugin+Modules for details on writing a workflow plugin such as a validator. If you've never looked at writing an Atlassian based plugin before, then you probably want to look higher up the page-tree for the getting-started guides too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't. Events are fired on all issue updates. The event contains a list of all changes, so what you do is catch any issue event and look for a change in the content of the field you are interested in.
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.