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 Apps / Azure DevOps connector...
Power Apps
Unanswered

Azure DevOps connector question

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I am trying to modify an AzDO work item on click. I am using the Azure DevOps connector, with the Update a work item method. Azure DevOps - Connectors | Microsoft Docs

 

I want to update the "System.State" of a work item to a different value. But, the connector keeps throwing errors.

 

I can get the Azure DevOps connector to update the "Title" with this command: 

AzureDevOps.UpdateWorkItem("12345", "MyOrg", {title :"My New Title here" });

This works fine.

 

but doing this for "State" does not work.

AzureDevOps.UpdateWorkItem("12345", "MyOrg", {state:"My New state here" });

 

I also tried:
AzureDevOps.UpdateWorkItem("12345", "MyOrg", {dynamicFields: {state: "My New state here"}}); 

This gives a 400 error "message""At least one operation is required for Apply."

 

and

AzureDevOps.UpdateWorkItem("12345", "MyOrg", {dynamicFields: { op: "add", path: "/fields/System.State", value: "My New state here"}}); 

This does not work. It follows the API definition here: Work Items - Update - REST API (Azure DevOps Work Item Tracking) | Microsoft Docs

 

and I also tried creating my own table and passing that in:
Set(NewStateTable, Table({op: "add", path: "/fields/System.State", value: "My New state here"}));

 AzureDevOps.UpdateWorkItem(12345, "MyOrg", {userEnteredFields: NewStateTable});

 

None worked. The official docs are not helpful here. 

 

Any ideas?

Thanks a lot!

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @aa123 ,

     

    Please take a look at this.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Unable-to-update-Azure-DevOps-work-item-status-using-PowerApps/m-p/1583664

     

    Best Regards,

    Wearsky

  • aa123 Profile Picture
    Microsoft Employee on at

    Works great! Thanks for pointing this out!

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard