4

In Azure Devops I have a git repository with a develop branch. We create multiple feature branches from this branch and merge code into develop via pull requests. Once we complete the pull requests the work items got completed. its all closed from various states.

I want to prevent this from happening. I'd like to keep these feature branches. How can I do that?

dilip bhapkar
  • 41
  • 1
  • 3

1 Answers1

10

Once we complete the pull requests the work items got completed. its all closed from various states.

The root cause of this issue is Complete associated work items after merging option. When you complete the Pull Request and this option is enabled, the related work items will close.

To solve this issue, you could disable this option.

enter image description here

You can also set it to be disabled by default.

You could navigate to Project Settings -> Repositories -> Select target Repo -> Options and disable Remember user preferences for completing work items with pull requests option.

enter image description here

Kevin Lu-MSFT
  • 20,786
  • 3
  • 19
  • 28
  • Thanks Kevin, this is solving my query in some extend, I need to permanent disable option "Complete linked work items after merging" . – dilip bhapkar Aug 24 '20 at 06:16
  • Hi @dilipbhapkar. I understand your requirement. But it doesn't support permanently disabling it now. Here is a suggestion ticket about this feature: https://developercommunity.visualstudio.com/content/idea/1046560/allow-disable-option-complete-linked-work-items-af.html You could vote and add comment in it. I also hope that azure devops can achieve this function in the future. – Kevin Lu-MSFT Aug 24 '20 at 06:38
  • By the way, if above answer resoled your question, you could [Accept it as an Answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work). This can be beneficial to other community members reading this thread and we could close this thread, thanks – Kevin Lu-MSFT Aug 24 '20 at 07:38
  • 1
    Hello! I'm trying to find this option, but I can't find it anywhere in DevOps settings. Does this option no longer exist? – Lotzi11 Aug 19 '22 at 15:43
  • 1
    The option name has changed. Current name:** Work item transition preferences** – Kevin Lu-MSFT Aug 22 '22 at 06:39