Forms API/Automation: Multiple attach/copy forms actions executing simultaneously results in undefined behaviour

XMLWordPrintable

    • 22
    • Severity 3 - Minor
    • 10

      Issue Summary

      When we have different automation rules and/or API requests that are triggered at the same time to add different forms, some forms may not be added to the ticket. There is a concurrency/race condition problem occurring when multiple Attach forms actions are triggered simultaneously. So, if we add two forms at exactly the same time, one of them may end up becoming overwritten.

      Steps to Reproduce

      Create different automation rules to attach different forms to the ticket using the same trigger(i.e. Issue created) and/or use concurrent public API requests to attach forms to the issue.

      Expected Results

      The forms will be added to the ticket.

      Actual Results

      Some forms will not be attached to the ticket, even though the Audit log associated with the automation shows that the form has been attached and/or the public API request was successful.

      Workaround

      The current workaround is to restructure the logic and rules so that only one Forms action executes at a time on the issue. We can see more details about it in the following document:

            Assignee:
            Evan Bennett
            Reporter:
            Bruna Silva
            Votes:
            21 Vote for this issue
            Watchers:
            40 Start watching this issue

              Created:
              Updated:
              Resolved: