Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-8152

Race condition between automation rules and adding a request participant via email

    XMLWordPrintable

Details

    Description

      Summary

      When a request is created via email the "Request Participant" is added to the ticket right after it is created, however, in some cases, it may race condition with automation rules triggered by the issue creation event. In those cases, actions made by the automation may be reverted.

      Environment

      Steps to Reproduce

      1. Create a custom field and add a few options to it. This bug was replicated using a "check-box" field type.
      2. Make sure that the field is in the issue type/project context and screens.
      3. Create an automation rule that will run on the issue creation and automatically set the field value. Example:
      4. Create an issue via email, CC'ing another customer.

      Expected Results

      • The request participant is added.
      • The automation rule is triggered and the field value is set.

      Actual Results

      • The automation will happen before the request participant is added to the ticket, and the field value will be cleared by the issue reported, even if they have no permission to edit the ticket.

      Notes

      • The intermittency is due to the order which the events happen (automation rule execution and participant being added to the ticket)
      • Whenever the automation rule is executed before the CC is added, the bug will occur.
      • The bug will not happen when the automation is triggered after the request participant is added to the ticket.
      • The "Service Desk Widget" user was set as the default account for automation rules.
      • We noticed that this affects other triggers as well such as comment.

      Attachments

        1. screenshot-2.png
          screenshot-2.png
          132 kB
        2. screenshot-3.png
          screenshot-3.png
          135 kB
        3. screenshot-4.png
          screenshot-4.png
          118 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pjunior Paulo Junior (Inactive)
              Votes:
              16 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated: