Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ZXYdkMoQDb3yTj4Beceemw
Power Automate - Building Flows
Suggested answer

Find azure devops work item which contains title x

Like (1) ShareShare
ReportReport
Posted on 10 Sep 2024 22:47:59 by Microsoft Employee
Hello Team, 
 
I am planning to automate some clean up task for my team where I will be querying the records from kusto table and for each record, i will check if there is work item with title that contains keyword and if that is not there , then will create the work item 
I tried using azure devop GET API and sent body as , it through the error back as METHOD is not allowed 


I tried to do post and flow just hangs with no error 
  • Suggested answer
    Expiscornovus Profile Picture
    31,701 Most Valuable Professional on 11 Sep 2024 at 09:48:57
    Find azure devops work item which contains title x
    Wiql queries are always with a POST request, not a GET request.
     
    Try something like the below
     
    Method
    POST
     
    URI
    @{variables('ProjectName')}/_apis/wit/wiql?api-version=7.1-preview.2
     
    Body
    {
     "query": "SELECT [System.Id],[System.WorkItemType],[System.Title],[System.AssignedTo],[System.State],[System.Tags] FROM WorkItems WHERE [System.Title] CONTAINS 'Test'"
    }
     
     

    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

🌸 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…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 125

#2
David_MA Profile Picture

David_MA 118 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 110 Super User 2025 Season 1

Overall leaderboard
Loading started