Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-5607

Issue Created event fired by SR post function doesn't trigger Automation issue created rule

    XMLWordPrintableJSON

Details

    • SR4J Sprint 112, SR4J Sprint 113
    • 2.2

    Description

      User already modify original event to a custom event when creating an issue. To make use of Automation for Jira "issue created" trigger, the user uses SR built-in post function "Fires an event when condition is true" to fire the Issue Created event.

      However, this does not trigger Automation for Jira rule trigger on "Issue created".

      Note,

      1. The Issue Created event fired is picked up by our listener just fine.

      2. Using native Jira fire event post function does trigger Automation rule.

      Steps to Reproduce

      Provide a detailed step-by-step process to reproduce the problem.

      1. On any transition, set up a post-function using SR built-in "Fires an event when condition is true" to fire the Issue Created event.
      2. Setup an Automation rule using Issue Created trigger, I use the "add comment to issue" action in respond to the trigger.
      3. Make the transition on an issue.

      Expected Behaviour

      Issue is transitioned, the Automation rule is triggered and a comment is added to the issue.

      Actual Behaviour

      Issue is transitioned, the Automation rule is not triggered (no record in log too), comment is not added.

      Workaround

      1. Use our own features to add comment and/or other actions.

      2. Reverse the event firing. That is, use native post function to fire Issue Created, and use ScriptRunner post function to fire the custom event.

      Screen Recording

      Issue Created Fired by SR does not trigger Automation rule.mov

      Attachments

        Issue Links

          Activity

            People

              mclark Matthew Clark
              mlim Max Lim
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: