Extending a webwork action to add UI elements
In the second chapter, we have seen how to extend a webwork action. In this recipe, let us build on it and see how we can add more UI elements to an existing JIRA form.
Getting ready
Create a skeleton plugin using Atlassian plugin SDK .
How to do it...
Let us consider a simple example for explaining 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 like 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 us 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 0 votes as it happens in JIRA by default. This example will give a rough idea on adding new UI elements...