Reputation: 41
I'm using TFS 2018 Latest version. TFS is on premise version. Visual studio 2017. I have a problem when sending code review. Code Reviews have Closed By field set automatically which prevents me to accessing the code review. I can't use the code review at all because of this problem. See attached pic Thanks in advance
Upvotes: 2
Views: 2645
Reputation: 345
For anyone still experiencing this issue, I fixed it by following these steps:
Upvotes: 2
Reputation: 61
I faced the same and after many hours of investigation we have narrowed the issue to the Visual Studio Team Foundation cache.
Resolution:
We’ve been able to use the Code Review workflow once again.
Upvotes: 5
Reputation: 1
I don't think the process template theory works, VS 2017 shows the code review as Closed by () but VS 2019 shows it as active as expected. If this was an issue with the template VS 2019 would have the same behavior. For me the underlying Code review work item is still active.
Upvotes: 0
Reputation: 8298
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."
Upvotes: 0