Rule Violation when updating work Item

Copper Contributor
Hello, I am using Devops work items as a general change management tool. I would like users to be able to transition a work item from State: New to State: Request approval.
 
When this field change occurs, I have a flow condition which changes the State of the work item to Pending Approval. 
 
I want to prevent the user from changing the work item to Pending approval status manually so I have used a Rule in Devops as shown below:
junior_gong_6-1725021828399.png

 

 

The intent of the rule is to prevent end users from transitioning this status, but allowing the service account in Power Automate to make the transition.

 
Here is the state field for reference before bring transitioned to Request approval:
 
 
junior_gong_7-1725021879019.png

 

 

 
Here is the relaent parts of my flow:
 
 
junior_gong_8-1725021898739.png

 

junior_gong_9-1725021909373.png

 

 
 

 

 
Unfortunatly, the flow is failing with a Devops rule violation. Am I approaching this correctly? I really would like to hide the state from users but allow the flow to be able to change to this state based on a condition.
 
Is there any way that I can accomplish this?
 
Thanks
1 Reply