Displaying dynamic notifications/warnings on issues
JIRA has an interesting feature, the Announcement Banner, which can be used to make announcements to its user community via JIRA itself. But sometimes, it isn't enough to satisfy all its users. Power users of JIRA sometimes want to see warnings or notifications while they are viewing an issue based on some attributes of the issue.
In this recipe, we will see how to add a warning or error message on an issue based on whether the issue has subtasks or not!
Getting ready
Create a Skeleton plugin using Atlassian Plugin SDK. Here also, as in the previous recipe, the core logic is in extending the JIRA action and modifying the existing JSP files.
How to do it...
The following are the steps to display warnings/errors based on the number of subtasks on a standard issue type.
As in the previous recipe, extend the JIRA action (in this case, View action) by adding a webwork module in
atlassian-plugin.xml
.<webwork1 key="view-issue" name="View Issue with...