A race condition can exist when transitioning a work item on creation into the same create status

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      When transitioning a work item into the same status as the create step on a trigger of work item created can introduce a race condition causing the transition to fail.

      Steps to Reproduce

      This is challenging to reproduce

      1. Build a workflow that has a transition into itself on the create status (so the status that the work item is initially added to can transition into itself).
      2. Create an Automation rule that will trigger on work item created and add a step that will transition the work item into the same status (loop transition).

      Expected Results

      The Automation rule should validate that the work item is fully created and committed before attempting to perform the transition call into the transition API for the work item.

      Actual Results

      There exists a condition in which it seems that the transition API doesn't have all the details for the work item and fails with an error message stating:
      "You must specify a Summary for the work item to be created."

      Workaround

      Add a delay action before the transition. Delaying the transition action by a second or two will allow for the transition to take place as expected and the rule to succeed.

              Assignee:
              Unassigned
              Reporter:
              Andy Rusnak
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: