It seems that you are using a customized process template and changed the process template.
You need to check if you have set some rules which may affect the code review, we could refer to this doc to check the work item type code review rules.
Another possibility is that you changed the process file (such as add work item type or add field).
As a workaround, we could create a copy of the process and move the project to the new process, it should work.
Update1
We could refer to this ticket to know which process template have been used in this project.
1. Open process page and export the process, contain default processes(Such as Agile, Scrum or CMMI ) and target process(current process).
2. Extract the target process and open the file ProcessTemplate.xml
->copy the field name
and version type
3. Extract the default process and open the file ProcessTemplate.xml
, then replace the field name
and version type
.
4. Zip the process folder->Open process page and upload the process to replace the issue process template.
Update2
Param(
[string]$collectionurl = "http://172.17.16.163:8080/tfs/DefaultCollection",
[string]$projectname = "GXJGitTest",
[string]$user = "xxx",
[string]$token = "xxxxx"
)
# Base64-encodes the Personal Access Token (PAT) appropriately
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{????????0}????????:{????????1}????????" -f $user,$token)))
#Get project ID
$ProjectsUrl = "$collectionurl/_apis/projects"
$ProjectsResponse = Invoke-RestMethod -Uri $ProjectsUrl -Method Get -UseDefaultCredential -Headers @{????????Authorization=("Basic {????????0}????????" -f $base64AuthInfo)}????????
$projectid = ($ProjectsResponse.value | where {????????$_.name -eq $projectname}????????).id
#Get system.template
$PTurl = "$collectionurl/_apis/projects/$projectid/properties"
$response = Invoke-RestMethod -Uri $PTurl -Method Get -UseDefaultCredential -Headers @{????????Authorization=("Basic {????????0}????????" -f $base64AuthInfo)}????????
$ProcressTemplate = ($response.value | where {????????$_.name -eq 'System.Process Template'}????????).value
Clear-host
Write-Host "The project $projectname is using the $ProcressTemplate Process Template."
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…