Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-70833

As a user I want to use the operator 'IS' with the field 'issueLinkType' so I can filter out issues without links

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: JQL
    • Labels:
      None
    • Feedback Policy:
      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

      Problem Definition

      The field issueLinkType does not support the operator IS, which makes it impossible to write a JQL query to exclude a specific issue link type from its results. That occurs because issues without links will also be matched, and there's no way to specify a null value for issueLinkType.

      For example, when running the JQL query below:

      project in (SCRUM) AND issuetype = story AND issueLinkType != blocks AND status not in (Done)
      

      All issues having an issueLinkType different than blocks will be returned, including issues without any links.

      Suggested Solution

      Implement support for the operator IS on the field issueLinkType. That would allow the JQL query above to be rewritten as:

      project in (SCRUM) AND issuetype = story AND issueLinkType != blocks AND issueLinkType IS NOT EMPTY AND status not in (Done)
      

      Which would return all issues in project SCRUM, having issuetype Story, having at least one issue link type different than blocks, and having a status different than Done.

      Workaround

      One can create a special saved filter containing all currently available issue link types and use nested filters.

      The downside is that any modifications to issue link types, such as adding a new one, or renaming/deleting existing ones, would break this functionality until the filter is updated.

      Filter named "All issue link types"
      issueLinkType in ("is blocked by", blocks, "is cloned by", "is duplicated by", "is caused by", "relates to"
      

      Then in the final JQL:

      project in (SCRUM) AND issuetype = story AND issueLinkType != blocks AND filter = "All issue link types" AND status not in (Done)
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            vfontes Vinicius Fontes
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: