DevOps : user story workflow to compel status changes

Copper Contributor

Hello team

I've customize some US status to have a more accurate understanding on US progress (New / Analysis / ready to Work / WIP / ...Closed) and now I want to set-up a workflow to compel changes on US status. For example, to prevent a US status New to change to Closed.

I've been diging for sometime now but I didn't find out 😞

Could you help please ?

Thanks !

1 Reply

@Thierry_BENSOUSSAN you can create a rule for user story work item to prevent moving from state New to Closed.

  • Go to you custom template user story work item.
  • Then go to rules tab and add a new rule.
  • Provide a rule name. 
  • Add condition "Work item state is moved from" and select New as the value.
  • Add action "Restrict transition to state" and select Closed as the value.

chamindac_0-1722070202531.png

When you save the above rule for user story work item in the custom template, the user story will not allow moving from New to Closed state.

A user story in New state does not show the Closed state.

chamindac_1-1722070614294.png

 

If you drag and drop a user story from New to Closed state an error will be shown and when you refresh the board, it will be still in the New state as New to Closed move is restricted.

chamindac_2-1722070733105.png

 

When you move the user story to other states for example Active in my example, it allows transistion to Closed state.

chamindac_3-1722070840787.png