Issues with power automate - Unable to Create a new work item when another work item's state is updated in ADO?

Blatt, Shelley 0 Reputation points
2025-06-26T13:35:44.1533333+00:00

I am using Power Automate to create a new work item on a board, when another work item is updated.

I have tried both the following flows & neither will run successful when the conditions are met.

  1. ADO trigger : When a work item is updated and Action > create a work item
  2. ADO trigger : When a work item is updated and Condition = WI = US and state = Ready for Testing & If yes - create a work item & send http request to ADO.

I think i need low level detail support advising field to complete. Thank you

Azure DevOps
{count} votes

2 answers

Sort by: Most helpful
  1. Blatt, Shelley 0 Reputation points
    2025-06-30T14:36:31.8933333+00:00

    Hi, the PA flow of sending an email, when a work item is updated works so proves my ADO & outlook connections are working.

    How do i apply this to the flow principle to my flow - when a work item (user story state is updated to 'Ready for Testing', then trigger creation of new work item (task) ?

    0 comments No comments

  2. Durga Reshma Malthi 6,130 Reputation points Microsoft External Staff Moderator
    2025-06-30T15:00:06.28+00:00

    Hi Blatt, Shelley

    I mentioned Ready for testing but as per your work item state it is Ready For Testing (capital F)

    1. Configure Trigger: "When a work item is updated" -> Choose:
      • Organization Name: your ADO org
      • Project Name: your ADO project
      • Leave all filters blank (especially Assigned To, Area Path, etc.)
    2. Click 3 dots on the trigger -> Settings -> Trigger Conditions, and paste:
         @and(
           equals(triggerOutputs()?['body/fields/System.WorkItemType'], 'User Story'),
           equals(triggerOutputs()?['body/fields/System.State'], 'Ready For Testing')
         )
      
    3. Action: Create a work item -> Type: Task,Title: Follow-up for @{triggerOutputs()?['body/fields/System.Title']},Area Path & Iteration Path: Inherit from the trigger item, Assigned To: Optional and State: New (default)
    4. Save the flow
    5. Go to Azure DevOps -> User Story -> Change its state to Ready for Testing -> Wait for 30-60 seconds
    6. Go back to Power Automate -> Run History -> Confirm it ran and created the Task.

    Hope this helps!

    Please Let me know if you have any queries.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.