Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 3eIMUj9A7TERFHszzI/qTv
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,643 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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started