Related Issues Manager for Jira

1. Related Issues - Overview

Based on an information inside a given issue (i.e. level security), you can capture a list of other issues with the same level security.

For example - Imagine a test analyst having to certify a given issue, but, in order to be sure that other issues (already closed) are still OK, he'd like to identify them and also execute a simple regression test on such issues.

It’s something like a recommendation over the issue you’re seeing, like: You should see this too

2. Related Issues - How it works

Initially the panel is shown for any issue, for users with Administrator permissions only.

So one should be able to configure panel visibility using Gear icon, and add needed sections.

  1. ability to indicate multiple combinations of fields, based on the current issue being searched

  2. ability to compare multiple values fields, like Components

  3. ability to compare text fields, like Description

  4. ability to use a JQL expression together with the other options mentioned above

  5. ability to select as many as columns users want to demonstrate on Related Issues Panel

  6. ability to allow / restrict configuration per User Group or Project Role

  7. ability to set max lines of result (limited to 5 by default)

  8. ability to create more than one Related Issues Panel per Issue, when other results are also relevant for the user

3. Related Issues - Actions

It is possible to execute a custom action on a related issue event, e.g. add comment when related issue is resolved.

Any action has to be scripted in Groovy language, and put in Jira Home, then if it's configured for a section, it's executed on event determined from the script file name.

If you want to add a comment when related issue is resolved:-

1. You will need to create the following script file in your JIRA Home,

named “related-issue-resolved-comment.groovy” with the following content:

#!java
import com.atlassian.jira.component.ComponentAccessor
 
def relatedIssue = event.issue
 
def comment = "${relatedIssue.key} ${relatedIssue.summary} - has been resolved"
 
if (event.comment) {
  comment += """
      {quote}
        $event.comment.body
      {quote}
    """
}
 
def commentManager = ComponentAccessor.getCommentManager()
commentManager.create(issue, user, comment, false)
  1. Then create a Related Issues panel or use existing one, and see Actions option in the very bottom of panel rule dialog.

  2. It should allow you to select one option: Issue Resolved - Comment (corresponding to script file name).

  3. Select it and Save changes.

  4. Once the related issues is resolved, all other related issues should be notified with comment now