JQL search for issueLinkType != doesn't return expected results when ScriptRunner is installed

XMLWordPrintable

    • 1
    • Minor
    • 1

      Issue Summary

      When ScriptRunner is installed on a site, it creates an alias for issueLinkType which references the entity property issue.property[scriptrunner.issuelinks].types under the hood.

      So when performing an inequality != JQL search with issueLinkType, unexpected results can be returned if the ScriptRunner entity property value doesn't match the issuelink value.

      Steps to Reproduce

      1. Create a site and install ScriptRunner
      2. Create two issues FOO-1 and FOO-2
      3. Create an issue link where FOO-1 is tested by FOO-2
      4. Search issueKey = FOO-1 AND issueLinkType != "is tested by"

      Expected Results

      FOO-1 is not returned because it contains an "is tested by" issue link.

      Actual Results

      FOO-1 is returned.

      Workaround

      issueKey = FOO-1 AND issueLinkType != "is tested by" AND issue.property[scriptrunner.issuelinks].types != Test

              Assignee:
              Unassigned
              Reporter:
              Jacqui Shadforth
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: