Skip to content

Commit e9fd131

Browse files
Handle the failures when package work item is unassigned (#35269)
Co-authored-by: Praveen Kuttappan <[email protected]>
1 parent a0b17e3 commit e9fd131

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

eng/common/scripts/Update-DevOps-Release-WorkItem.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ Write-Host "Updated or created a release work item for a package release with th
9393
Write-Host " Lanuage: $($workItem.fields['Custom.Language'])"
9494
Write-Host " Version: $($workItem.fields['Custom.PackageVersionMajorMinor'])"
9595
Write-Host " Package: $($workItem.fields['Custom.Package'])"
96-
Write-Host " AssignedTo: $($workItem.fields['System.AssignedTo']["uniqueName"])"
96+
if ($workItem.fields['System.AssignedTo']) {
97+
Write-Host " AssignedTo: $($workItem.fields['System.AssignedTo']["uniqueName"])"
98+
}
99+
else {
100+
Write-Host " AssignedTo: unassigned"
101+
}
97102
Write-Host " PackageDisplayName: $($workItem.fields['Custom.PackageDisplayName'])"
98103
Write-Host " ServiceName: $($workItem.fields['Custom.ServiceName'])"
99104
Write-Host " PackageType: $($workItem.fields['Custom.PackageType'])"

0 commit comments

Comments
 (0)