When implementing complex plug-ins for the Atlassian suite, it might be needed to request information from another Atlassian application. You can see examples for it, when JIRA shows Stash commits, of Confluence pages. As all Atlassian applications has a REST API, it is possible to make JSON calls directly. Using Application Links for communication between… Continue reading Using Application Link in Atlassian plugins
Month: September 2016
Different ways to use assertions in Java code
In order to create a clean and save code, I prefer implement as many state checks in my code, as possible or necessary. If a state check fails, you usually want to throw an exception and stop processing the current business step. Failure in state check is always a sign of an implementation problem. As… Continue reading Different ways to use assertions in Java code
Figure out if a field has been changed in JIRA event handler
At the previous post I have created an event handler for JIRA issues. Now, I will show how to check if a particular field has been changed during the event to be handled. JIRA uses GenericValue objects from org.ofbiz.core.entity package to store event related information. GenericValue is basically a Map implementation to store all kind of data.… Continue reading Figure out if a field has been changed in JIRA event handler
Creating event listener for JIRA issue
Issue update event listener makes it possible to when the issue is created or modified in JIRA. As the event listener is registered to the lifecycle of the issue, the listener will be notified independently of the actual GUI element, used to create or update the issue. Also the event listener will be notified after… Continue reading Creating event listener for JIRA issue