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

We are facing racing conditions when multiple automation rules are running in parallel which are attempting to update an object

XMLWordPrintable

      Issue Summary

      We are facing racing conditions when multiple automation rules are running in parallel which are attempting to update an object.

      Steps to Reproduce

      1. Create 5 automations in parallel(with object created trigger) which are suppose to update 5 user attribute using email address.
      2. Import ~1500 objects using a CSV file
      3. Automation will work for the most part but will fail 10% of the time

      Expected Results

      Objects should be updated successfully

      Actual Results

      Few objects are failing to update due to race condition and automation is failing with error:

      Error updating Object

      Workaround

      Trigger: Scheduled

      Branch: AQL targeting user attribute value missing

      Action: Send web request -

      https://<your-jira-tenant>.atlassian.net/rest/api/3/user/search?query={{Object.Email}}
      

      Action: Edit Object - Select the attribute field -

      {{webResponse.body.accountId}}
      

      Note: Below options should be enabled in send web request action

      • Delay execution of subsequent rule actions until we've received a response for this web request
      • Continue running the rule even if the request response is not successful (i.e. non-200 response)

              7260236ab89d Justin King
              b6d0a675f06c Remo Fernandes
              Votes:
              4 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: