Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
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.
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)