Workflow (validators & post-functions)

There are several different ways of blocking the issue workflow transition:

Also, there is a way to complete all items automatically when the issue gets resolved (or transitioned):

In Jira, the transition between workflow statuses goes through a validation phase that determines if the transition is allowed or not. The validation phase can be configured by Jira administrators through "validators". Learn more about Configuring Workflows and Workflow Validators in the Atlassian Documentation.