JQL Related Issues Conditions does not work fine for some JQL queries

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      When using the following query into a Related Issues Condition, Automation is not able to look for existing issues in the instance.

      summary ~ {{triggerIssue.summary}} AND issuekey != {{triggerIssue.key}}

      Steps to Reproduce

      1. Create a rule using Issue Created
      2. Add a Related Issue Condition with the following query:
        summary ~ {{triggerIssue.summary}} AND issuekey != {{triggerIssue.key}}

      The rule will inform in the audit log that there was a match with the just created issue, ignoring all the existing issues from the instance.

      Expected Results

      The rule should be able to look for issues which summary contains the same summary of the trigger issue and which key is different from the trigger issue key.

      Actual Results

      The condition matches the just created issues even though the query specifies the key needs to be different from the trigger issue:

      The same problem happens when using Manual trigger and even Issue transitioned trigger.

      Workaround

      It's possible to use a Branch to look for issues which summary is similar from the just created issue summary:

        1. image-2020-09-08-08-00-01-168.png
          52 kB
          Ilenice
        2. image-2020-09-07-12-32-32-583.png
          108 kB
          Ilenice
        3. image-2020-09-07-12-25-22-806.png
          50 kB
          Ilenice
        4. Automation_rules_-_Jira.png
          118 kB
          Mark Chaimungkalanont

            Assignee:
            Unassigned
            Reporter:
            Ilenice
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: