Hi,
I am working on an auto-cloning plugin that will create clones in different fix versions based on data pulled from an external application. One of the requirements is to be able to invoke it both manually (as a web-item in the operations bar) or through a transition post-function.
I have found two plugins I have considered basing my plugin on. The JIRA Clone Plus Plugin which operates as a web-item in the operations bar and the JIRA GroovyScript Runner plugin which can clone from a transition post-function, but I would really like a single method to do it both ways.
I am open to thoughts and suggestions on how you might implement such a thing...
P.S. One option I have considered but I am not sure I like would be to add an Auto-Cone transition to every status (transitioning back to the same status). This would allow auto-cloning on demand or when a regular transition called it - my concern with this approach is maintaining the workflow. Thoughts?
Thanks,
Jon
Community moderators have prevented the ability to post new answers.
I would write the code as a service (not a JIRA service, but just as a concept) registered as a Spring Component in JIRA and then call this from either a Transition or the handler from the web-item.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the end I did use a looping "AutoClone" transition (back to the initial status) to trigger a post-function groovy script. This allowed AutoCloning to be run manually by clicking the AutoClone Transition button or through a normal transition from Status A -> Status B where the post-function was defined.
I never got to try Colin's suggestion, but it sounds reasonable so I will mark it as an answer too.
Thanks Colin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.