Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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,728 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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Automate - General Discussion

#1
stampcoin Profile Picture

stampcoin 23

#2
Pstork1 Profile Picture

Pstork1 20 Most Valuable Professional

#3
Gprior Profile Picture

Gprior 19

Overall leaderboard
Loading started