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

Announcements

News and Announcements icon
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,828 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard