IF-ELSE-STEP Service Desk CommandsThe following is a summary of IF-ELSE and STEP statements used in Service Desk procedures.
Where Used These IF-ELSE and STEP statements are used by the following types of Service Desk procedures.
IF-ELSE in Detail Check a Variable Enter the name of the variable in the format Enter a string comparison operator. The same string comparison options are available for all IF commands. See String Comparisons and Date/Time Comparisons. Then enter a second value to compare against the first value. Instead of a value you can also enter a object variable in the format If the test is true, IF steps are executed. If the test is false, ELSE steps are executed. Tests for Duplicate Requests This IF command is only available in a Ticket Request De-Dup procedure. Tests a ticket request to see if it is a duplicate of any existing ticket. Prevents multiple tickets from being created for the ticket request, within a specified time limit. Ticket requests are created when Service Desk receives a request to create a ticket. Ticket requests are based on either an inbound email or system event, such as alarm conditions. Incoming Email Settings and linked service desk procedures determine how ticket requests are processed into tickets, what service desks are used to create the tickets, and whether ticket requests are canceled. Tests true if one or more of the following conditions are matched:
Limits matching to the most recent <N> number of periods, based on the ticket creation date. Test a Custom Field of the Ticket Enter the name of the custom field in the format Enter a string comparison operator. The same string comparison options are available for all IF commands. See String Comparisons and Date/Time Comparisons. Then enter a second value to compare against the first value. Instead of a value you can also enter a object variable in the format If the test is true, IF steps are executed. If the test is false, ELSE steps are executed. Test a Property Value of the New Ticket Select a ticket property from the drop-down list, in the format Enter a string comparison operator. The same string comparison options are available for all IF commands. See String Comparisons and Date/Time Comparisons. Then enter a second value to compare against the first value. Instead of a value you can also enter a object variable in the format If the check is true, IF steps are executed. If the check is false, ELSE steps are executed. Test Property Value of the Receipt This IF command is only available in a Ticket Request Mapping procedure. Select a ticket property from the drop-down list, in the format Enter a string comparison operator. The same string comparison options are available for all IF commands. See String Comparisons and Date/Time Comparisons. Then enter a second value to compare against the first value. Instead of a value you can also enter a object variable in the format If the test is true, IF steps are executed. If the test is false, ELSE steps are executed. SourceType, SourceTag and SourceValue Properties The
String Comparisons The string comparisons performed in IF commands are not case sensitive. The available tests are:
For the tests Date/Time Comparisons You can use an IF statement to test whether a time relative to the current time is true or not. Relative time is specified as STEP in Detail Add a Note Adds a note to the ticket being processed by the procedure. You choose to make the note hidden or not. Select a note template instead of entering a note. Note text can include an object variable in the format Assign Ticket Custom Field Assigns a value to a custom field in a ticket. Enter the name of the custom field in the format You can also enter a object variable in the format Assign Ticket Property Assigns a value to the property of a ticket. The set of properties that can be assigned are displayed in a drop-down list. The supplied value may be a global variable name or procedure variable name in the format Delete a Ticket Deletes the ticket being processed by the procedure. Execute a Common Sub-Procedure Causes a sub-procedure to execute. Use this capability to string multiple IF-ELSE clauses together. You can nest the execution of procedures to 10 levels. Execute Shell Command Executes a shell command on the KServer. Runs from the Fails the Current Ticket Transaction If included in a procedure, cancels all changes to the ticket. Cancels both ticket changes made manually before saving the ticket and ticket changes made within the procedure being processed prior to this step being run. Does not cancel Send Email or Send Message steps processed before this step is run. Cancels all steps in the procedure after this step is run. Get a Variable Defines a new procedure variable and assigns it a value. Specify the variable name without brackets. Example: You can refer to this variable in text fields in any subsequent steps by adding
Link to Another Ticket Links the ticket being processed to a specified ticket ID or knowledge base article ID. Pause Stage Goal Pauses counting elapsed time against the current stage goal. Goal procedures are linked to stages using the Service Desk > Definitions > Processing > Stage > Procedures tab. Pause Ticket Goal Pauses counting elapsed time against the ticket goal. The ticket goal determines the due date for the entire ticket. Goals are linked to a service desk using the Definitions > Properties > General > Procedures tab. Resume Stage Goal Resumes counting elapsed time against the current stage goal. Goal procedures are linked to stages using the Service Desk > Definitions > Processing > Stage > Procedures tab. Resume Ticket Goal Resumes counting elapsed time against the ticket goal. The ticket goal determines the due date for the entire ticket. Goals are linked to a service desk using the Definitions > Properties > General > Procedures tab. Schedule Procedure Runs a selected agent procedure for a specified machine. Use Send Email Sends an email to one or more recipients. Specifies the subject and body text of the email. You can include object variables, global variables and procedure variables in the To, From, Subject, and Body fields of a Send Email command. You can reference object variables, global variables and procedure variables in the message templates you link to in a Send Email command. See Message Templates for a list of object variables. See Procedure Variables and Working with Variables for more information about variables. You can also enter the name of a pool of users. Names are delimited using commas or semi-colons. The following order of precedence determines the email addresses of recipients. The name in the To field of a Send Email step is checked to see if it:
Send Message Sends a message to the Inbox of a user. You can only enter one user name in the To field of the Send Message dialog box. Use Send Message to User Pool to send a message to multiple users. You can include object variables, global variables and procedure variables in the To, From, Subject, and Body fields of a Send Message command. You can reference object variables, global variables and procedure variables in the message templates you link to in a Send Message command. See Message Templates for a list of object variables. See Procedure Variables and Working with Variables for more information about variables. Send Message to Pool Users Sends a message to the Inbox of all users in a selected pool. You can include object variables, global variables and procedure variables in the Subject, and Body fields of a Send Message to Pool Users command. You can reference object variables, global variables and procedure variables in the message templates you link to in a Send Message to User Pool command. See Message Templates for a list of object variables. See Procedure Variables and Working with Variables for more information about variables. Set Escalation Time Sets the time a ticket is escalated. Overrides the default escalation time set for a stage using the Service Desk > Definitions > Processing > Stage > Procedures tab. The escalation time can be calculated using the coverage schedule associated with the ticket or using calendar time. For example, if a coverage schedule does not include weekend coverage, and the ticket escalation procedure runs during the weekend, escalation of the ticket will not start counting until coverage begins on Monday morning. If escalation time is calculated using:
Set Goal Time Sets the time the goal for a stage is scheduled to be completed. Overrides the default goal time set for a stage using the Service Desk > Definitions > Processing > Stage > Procedures tab. Set Ticket Goal Time Sets the time the goal for a ticket is scheduled to be completed. The ticket goal determines the due date for the entire ticket. Overrides the default goal time set for a ticket using the Definitions > Properties > General > Procedures tab. Write Procedure Log Entry Writes the supplied string to System > . | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Topic 4009: Send Feedback. Download a PDF of this online book from the first topic in the table of contents. |