kagarlickij
kagarlickij

Reputation: 8137

Azure DevOps: Don't set Task status as Closed when Pull request is merged

I'm using Azure DevOps for both planning and coding,
Now when PR with attached issue (task)is merged, task is set to "Closed" automatically (I use project template based on Agile)
Is there a way to change it, e.g. I'd like my custom status "Ready for deploy" to be set instead of "Closed"?

Upvotes: 5

Views: 5373

Answers (1)

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51153

This is currently controlled by the PR Compeltion Settings:

PR Completion Settings

Unfortunately, the (feature) you're looking for is not presently supported, you can't handle the work item state when you check "Complete linked work item after merging"

Here is a related UserVoice in Microsoft Developer Community site: Customize Work Item State after PR is closed.

You can vote up and add your comment there. This User Voice is already Under Review.

As workaround you could try to use Service Hook to get the PR event and change the work item state to what you want.

Upvotes: 9

Related Questions