azureazure-devopspull-request

Azure change work item status after merging a PR


I'm trying to custom change the work item status after merging a PR. I've followed this guide https://learn.microsoft.com/en-us/azure/devops/boards/work-items/auto-complete-work-items-pull-requests?view=azure-devops#specify-the-workflow-state-of-linked-work-items but I cant manage it to work:

enter image description here

So It's supposed to change the Task state to "Pnte.D.Pre" but after accepting the merge, it is not changed. I've tried also bypassing PR restrictions to merge but it doesn't change: enter image description here

First I thought that using that dot syntax on my states was the problem, but even changing it to Active does nothing. Here are all my states: enter image description here

What is wrong with it?


Solution

  • I`ve tested your case, and it works:
    enter image description here

    Can you check this setting on the repository?

    enter image description here

    Additionally, check mandatory fields in the target state.. if there are such fields, a pull request can not move a work item.