Forum Discussion
Thierry_BENSOUSSAN
Jun 12, 2024Copper Contributor
DevOps : user story workflow to compel status changes
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...
chamindac
Jul 27, 2024Brass Contributor
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.
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.
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.
When you move the user story to other states for example Active in my example, it allows transistion to Closed state.