Skip to main content

Notifications

Community site session details

Community site session details

Session Id : cTcD6O/NExAsg4aQlHnU2V
Power Automate - General Discussion
Unanswered

Get work Item children status and work hours when parent task is closed

Like (0) ShareShare
ReportReport
Posted on 2 Jan 2023 17:05:09 by Microsoft Employee

Hi,

 

whenever a parent item is closed ,I am trying to fetch the work item children status and work hours. If any child item is not in done state, I will notify the parent item assignee to about closing the child task.

 

Steps I have taken,

1. Trigger : When work Item is closed.

2. Action : Send an Http request to Azure dev Ops.

Azure devops requestAzure devops request

Here i am trying to fetch all the child item for Work ID: 115968 (Also tried Dynamic Field. ID) but it is failing at this step only with error : "Unable to parse Base64 encoded bytes. clientRequestId: d86b2ede-c91b-4031-beaf-ef2773b9fb79"

 

Then I storing this query in to variable and

3. Using action : Get Query Results.

4. Apply to each : Send an email if state is not closed.

 

Any help is appreciated to resolve this issue.

 

Thanks,

 

  • Expiscornovus Profile Picture
    31,652 Most Valuable Professional on 05 Jan 2023 at 11:47:49
    Re: Get work Item children status and work hours when parent task is closed

    Hi @RK_RPA,


    As far as I am aware Query by WIQL request are POST requests and not GET requests.

    https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/wiql/query-by-wiql?view=azure-devops-rest-7.0&tabs=HTTP

     

    Can you try something like below?

     

    {
     "query": "SELECT [System.Id],[System.AssignedTo],[System.State],[System.Title],[System.Tags]
    FROM workitemlinks
    WHERE ([System.Links.LinkType] = 'System.LinkTypes.Hierarchy-Forward')
     AND ([Source].[System.Id] = '@{triggerOutputs()?['body/fields/System_Id']}')"
    }

     

    querybywiql.png

     


     

    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,786 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started