Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-1616

Automation runs twice with "Field value changed" trigger set to parent and listening to multiple issue operations

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      If you create an automation rule with the "Field value changed" trigger set to monitor the field "Parent" and listen to the all work items operations, the automation will run twice when you create or transition an issue and changing the parent field.

      Steps to Reproduce

      1. Create an automation rule similar to the following:
      2. Create or transition an issue, adding the parent in the process.

      Expected Results

      • The automation rule should run only once.

      Actual Results

      • The automation rule is running twice, one for the issue_created or issue_transitioned event, and other for the issue_updated event.

      This can lead to multiple undesired results, such as duplicated issues and/or actions.

      Workaround

      You can simply edit the automation rule to only trigger when the parent field when the operation edit work item is triggered. If you create or transition a new issue with the Parent defined, the rule will still be executed, and only once:

              Unassigned Unassigned
              6d7c663e31d1 Eliseu Pedro
              Votes:
              21 Vote for this issue
              Watchers:
              25 Start watching this issue

                Created:
                Updated: