web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Fetch predecessor of w...
Power Automate
Suggested Answer

Fetch predecessor of work items in ADO

(0) ShareShare
ReportReport
Posted on by
I want to fetch the predecessors of all work item of type "Feature" in ADO
For example: I will have user stories as predecessors to some Features.
 
I want to fetch these in Power automate to do further operations.
 
  1. I have tried using HTTP request but, its not working for me at this point. I have passed the PAT.
  2. I did some exploration to find that I got to parse the JSON output once the HTTP request is successful to know each predecessor ID.
 
 Please let me know if you have any inputs on the above two. Also, do suggest if there is a better way to extract predecessors of a work item using Power automate
Categories:
I have the same question (0)
  • Suggested answer
    Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    You don't have to use a Personal Access Token for this. Interaction with work items is allowed via the Send an HTTP request to Azure DevOps action.
     
    In that action you can use a WIQL query which looks for work items with a LinkType System.LinkTypes.Dependency-Reverse (Predecessor) and where the Source work item ID of that link is your Feature work item.
     
    Below is an example
     
    URI
    @{variables('ProjectName')}/_apis/wit/wiql?api-version=7.1-preview.2
     
     
    Body
     
    {
     "query": "SELECT [System.Id],[System.AssignedTo],[System.State],[System.Title],[System.Tags]
    FROM workitemlinks
    WHERE ([System.Links.LinkType] = 'System.LinkTypes.Dependency-Reverse')
     AND ([Source].[System.Id] = '@{variables('WorkItemId')}')"
    }
     


    Work items which I used for my test
     


    Test run of flow
     
     
     
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard