added billing note for time entry
This commit is contained in:
@@ -56,8 +56,9 @@ $StartAt = (Get-Date).AddMinutes(-$BillableTimeInMinutes).ToString("o")
|
|||||||
Switch ( $CulpritProvider ) {
|
Switch ( $CulpritProvider ) {
|
||||||
{ $_ -match $ProviderMicrosoft } {
|
{ $_ -match $ProviderMicrosoft } {
|
||||||
$TicketComment = "I've analyzed the crash report and it indicates a problem with a Windows component. I'll repair the system now."
|
$TicketComment = "I've analyzed the crash report and it indicates a problem with a Windows component. I'll repair the system now."
|
||||||
|
$TimeEntryNote = "Analysis indicates crash caused by Windows component(s). Scanning and repairing corruption in the system."
|
||||||
Create-Syncro-Ticket-Comment -TicketIdOrNumber $TicketID -Subject "Update" -Body $TicketComment -Hidden $false -DoNotEmail $false
|
Create-Syncro-Ticket-Comment -TicketIdOrNumber $TicketID -Subject "Update" -Body $TicketComment -Hidden $false -DoNotEmail $false
|
||||||
Create-Syncro-Ticket-TimerEntry -TicketIdOrNumber $TicketID -StartTime $StartAt -DurationMinutes $BillableTimeInMinutes -Notes $TimerNotes -UserIdOrEmail $TimeAttributedToUser -ChargeTime $true
|
Create-Syncro-Ticket-TimerEntry -TicketIdOrNumber $TicketID -StartTime $StartAt -DurationMinutes $BillableTimeInMinutes -Notes $TimeEntryNote -UserIdOrEmail $TimeAttributedToUser -ChargeTime "true"
|
||||||
$FixWindowsHealth = Download-File -URL 'https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Fix-WindowsHealth.ps1'
|
$FixWindowsHealth = Download-File -URL 'https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Fix-WindowsHealth.ps1'
|
||||||
Start-Sleep -Seconds 120
|
Start-Sleep -Seconds 120
|
||||||
. $FixWindowsHealth
|
. $FixWindowsHealth
|
||||||
|
|||||||
Reference in New Issue
Block a user