Close-IvantiIncident
SYNOPSIS
Closes an incident in Ivanti ITSM.
SYNTAX
RecID (Default)
incidentNumber
Close-IvantiIncident -incidentNumber <Int32> [-timeSpent <Int32>] -Resolution <String> [<CommonParameters>]
DESCRIPTION
Closes an incident in Ivanti ITSM by updating its status to 'Completed' and adding a resolution note. Ensures that all associated tasks are completed before closing the incident.
EXAMPLES
EXAMPLE 1
Closes the incident with incident number 12345 with the resolution 'Issue resolved'.
EXAMPLE 2
Closes the incident with record ID 'abc123' with the resolution 'Issue resolved'.
PARAMETERS
-incidentNumber
The incident number to be closed.
Type: Int32
Parameter Sets: incidentNumber
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-recID
The record ID of the incident to be closed.
Type: String
Parameter Sets: RecID
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-timeSpent
The time spent on the incident in minutes. Default is 1 minute.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False
-Resolution
The resolution description for the incident.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.