Skip to content

Commit a2b397d

Browse files
azure-sdksmw-ms
andauthored
Add date & time when updating attestation status in work item (#43584)
Co-authored-by: Summer Warren <[email protected]>
1 parent 6bcbbec commit a2b397d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,11 @@ function Get-TriagesForCPEXAttestation()
12091209

12101210
function Update-AttestationStatusInWorkItem($workItemId, $fieldName, $status)
12111211
{
1212-
$fields = "`"${fieldName}=${status}`""
1212+
$dateFieldName = $fieldName -replace 'Status$', 'Date'
1213+
1214+
$fields = @()
1215+
$fields += "`"${fieldName}=${status}`""
1216+
$fields += "`"${dateFieldName}=$(Get-Date)`""
12131217

12141218
Write-Host "Updating Work Item [$workItemId] with status [$status] for field [$fieldName]."
12151219
$workItem = UpdateWorkItem -id $workItemId -fields $fields

0 commit comments

Comments
 (0)