Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-910

Rules listening to events are not triggered if the events came from another rule

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 7.4.0, 8.0.0, 9.0.3
    • Actions
    • Severity 3 - Minor

      Issue Summary

      If a rule is configured to be triggered on a specific event, this rule will not be triggered if the event was published by another rule, even if the option Allow Trigger is enabled.

      Environment

      Affect any Automation For Jira version at least from 7.4.0.

      Steps to replicate

      • Create 2 automation rules as follows
        • Rule 1
          • Choose any trigger of your choice
          • Add the "Publish Event" action and choose the "Issue Assigned" event
        • Rule 2
          • Select the Multiple issue events and choose the "Issue Assigned" event
          • Add any action of your choice
          • Go to Rule Details and make sure that Allow Trigger is enabled
      • Create a new Jira issue
      • Trigger the Rule 1 for that Jira issue
      • Check the Audit Logs from the Rule 1 and verified that it was triggered and published the event
      • Check the Audit Logs from Rule 2

      Expected Results

      The Rule 2 should have been triggered, since it's listening to the event triggered by Rule 1

      Actual Results

      The Rule 2 was not triggered, even though the Allow Trigger option (which allows this rule to be triggered by other rules) was ticked:

      Workaround

      • Edit the automation rule that is publishing the event
      • Click on the "Publish Event" action
      • Tick the option "Publish newer style 'IssueEventBundle'"

      Suggestions for the bug fix

      • Either remove the old event style, since it's causing this bug
      • Or make the new event style the default one

        1. Bug_Workaround.png
          Bug_Workaround.png
          120 kB
        2. Bug_Step5.png
          Bug_Step5.png
          149 kB
        3. Bug_Step4.png
          Bug_Step4.png
          266 kB
        4. Bug_Step3.png
          Bug_Step3.png
          250 kB
        5. Bug_Step2.png
          Bug_Step2.png
          230 kB
        6. Bug_Step1.png
          Bug_Step1.png
          249 kB

              Unassigned Unassigned
              jrey Julien Rey
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: