The "notetext" holds the text of the task note. Navigate to an incident and create a data table called "tasknotes" with three columns - "taskid"(Number), "taskname"(Text) and "notetext"(Text Area, Rich Text) and place it under incident Notes Tab section.
This is an example script that will copy Task level notes and add them to the Incident Notes Widget. Note: the same field can be optional for certain incident types and mandatory for others. An error is thrown if the creation is attempted without a valueįor City. This script will force you to set the City field when creating a new incident IF Malware is Select Run Script and then select the script you created from the drop-down menu. Hit save, navigate back to the rule you created, select Edit, then click Add New in the Ordered Helper.fail("Incident type for Malware needs city name") If ("Malware" in incident.incident_type_ids) and (not incident.city) :
#Codebox gml update#
The Rule 'setRequiredFieldBasedOnConditons' is unable to update the Incident 'JonIncident' because: Incident type for Malware needs city name This will force you set "City" for incident when you create an incident whose type contains "Malware". Set the object type to Incident and enter the following in the codebox: Save the rule and navigate to the Scripts tab and select New Script. Next, select Add New under the condition section set the condition to: Incident Type contains Malware. To do so, navigate to Customization Settings -> Rules and select New Rule. Conditionally required fields based on conditions/activitiesįirst, you will need to create an Automatic Rule.This script will now automatically set the owner of an incident to " if that incident Next, select Add New under the condition section set the condition to: Phase is set to Complete. This will set incident owner to " if incident phase is "Complete".įirst, you will need to create an Automatic Rule. Create following incident script and add to the rule. Set Phase is changed to Complete condition. Set Incident Owner based on Incident PhaseĬreate an Automatic Rule on the Incident object.This script will now automatically set the members of an incident to: and an incident has type Other. mbers= [" " save, navigate back to the rule you created, select Edit, then click Add New in the Ordered Set Incident members based on Incident Type.This script will automatically set an incident's owner to " if the incident type is Select Run Script and then select the script you created from the drop down menu.
Incident.owner_id = " save, navigate back to the rule you created, select Edit, then click Add New in the Ordered If "Other" in incident.incident_type_ids: Next, select Add New under the condition section set the condition to: Incident Type contains Other.
Downloadable version (as of 3-16-17) of this is at bottom of article