Given the stormy weather in Belgium today, I had some time to write up an article which I wanted to do for quite some time.
We got sometimes the question from our users how to automatically exalate all subtasks whenever an issue is being exalated
Exalate is an issue sync solution allowing to integrate between Jira, ServiceNow, SalesForce, Zendesk, ... - (and yes - I'm part of the team building that addon).
Therefore I thought to implement this requirement with ScriptRunner ...
The article shows how the exalate classes can be instantiated to trigger an exalate operation.
The way it works is
Setting up the custom Listener
An image is worth 1000 words. The event the listener needs to listen to is 'com.exalate.api.domain.trigger.EXALATED'
How does it work in detail
The whole script code can be found on this snippet
event.issue contains the parent issue which has been exalated. The exalateNow function is called on every subtask
The exalateNow function is a closure taking an issue object and a connection name.
The exalateNow code is using a couple of classes that need to be instantiated.
This can be done using the code below
Wrap up
This article is meant to give an example how to instantiate the exalate classes and use these to perform a more advanced synchronisation case.
Using the above logic it is possible to write a procedure to synchronise a complete issue structure (Project -> Epic -> Story) and all related subtasks.
Disclaimer
This example is using non-public api's which will change between different versions of the addon. Take this into account whenever using the api's to implement production scripts.
The example is an example and there is no guarantee that it would work in your case. If in doubt - there are 130+ Exalate partners providing professional services to help out.
francis
Atlassian expert
Exalate
Belgium
42 accepted answers
5 comments