Extending a webwork action to add UI elements
In Chapter 2, Understanding the Plugin Framework, we have seen how to extend a webwork action. In this recipe, let us work on it and see how we can add more UI elements to an existing JIRA form.
Getting ready
Create a skeleton plugin using the Atlassian Plugin SDK.
How to do it...
Let's consider a simple example this. The clone issue operation in JIRA creates a copy of the original issue with the value of almost all of its fields copied across, barring few fields such as issue key, created date, updated date, estimates, number of votes, and so on.
What if we want to copy across the number of votes on the issue as well? Let's say we want to add a checkbox on the clone issue form, leaving the decision to the user whether to copy the votes across or not. If the user selects the checkbox, votes will be copied across and if not, the cloned issue will be created with zero votes as it happens in JIRA by default. This example will give a rough idea about...