Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-9197

Sort Issue Navigator by parent-children pairs

    XMLWordPrintable

Details

    • 25
    • 17
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Atlassian Update – 13 Jan 2016

      Hi everyone,

      Thanks for voting and commenting on this issue. Your feedback is key to helping us understand how you use JIRA so we can continue improving your experience. We have reviewed this issue over the last few days; however there are not currently any plans to implement this suggestion.

      Please remember that jira.atlassian.com is one of many inputs for the JIRA roadmap. You can learn more about our process here.

      I understand that our decision may be disappointing. Please don't hesitate to contact me if you have any questions.

      Regards,
      Daniel Franz
      dfranz@atlassian.com
      Principal Product Manager, JIRA Platform

      Summary

      Since sub-tasks are directly related to their parents, those should be displayed in hierarchic order on the Issue Navigator. Something similar is already applied on Agile boards, for example.

      Workaround

      It's possible to use the Script Runner plug-in to achieve this by adding a Scripted Field to the sub-tasks, storing the Parent Issue's key.

      Here's the script:

      import com.atlassian.jira.issue.Issue;
      
      Issue parentIssue = issue.getParentObject();
      def parentIssueKey, issueKey;
      
      if (parentIssue != null) {
      	parentIssueKey = parentIssue.getKey();
          return parentIssueKey;
      }
      else {
          issueKey = issue.getKey();
          return issueKey;
      }
      

      And here's the JQL operand you should append to filters for this ordering to be applied:

      ORDER BY "Parent Issue Key" ASC, key ASC
      

      Please note that Atlassian does not provide any kind of support to third-party add-ons or scripting of any kind, so we cannot guarantee any further assistance or maintenance on this script.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sam@atlassian.com Sam Chang [Atlassian]
              Votes:
              338 Vote for this issue
              Watchers:
              176 Start watching this issue

              Dates

                Created:
                Updated: