- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 06:39 AM - edited 07-25-2024 10:01 AM
Hi Everyone,
I am learning ServiceNow; please help on how to create a custom field which can be used to report incidents where incident priority updated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 08:44 AM
Hi @Eddie5
to creating a custom field and tracking incidents where the priority was downgraded in ServiceNow:
Add a Custom Field to the Incident Table
- Navigate to: System Definition > Tables.
- Select: Incident table.
- Add Field:
- Label: Priority Downgrade
- Name: u_priority_downgrade
- Type: True/False (Boolean)
- Save the Field.
Create a Business Rule
- Navigate to: System Definition > Business Rules.
- Create a New Rule:
- Name: Track Priority Downgrade
- Table: Incident [incident]
- Active & Advanced: Checked
- When to Run: Before, Update
(function executeRule(current, previous /*null when async*/) {
if (current.priority > previous.priority) {
current.u_priority_downgrade = true;
}
})(current, previous);
……………………………………………………………………………………………………
Please Mark it helpful 👍and Accept Solution✔️!! If this helps you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 07:40 AM
Hi @Eddie5,
To create a new field on the incident form.
- Open the form context menu and select Configure > Form Layout.
- Enter the Name and Type of the field in the Create new field and Save
Refer: https://docs.servicenow.com/bundle/washingtondc-it-service-management/page/product/change-management...
For incident priority downgraded you can create a Onchange client script - if value of priority is degraded you can update custom field which can further used for reporting.
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful."
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 07:44 AM
Hi Ayushi, can you please write a script for me? I dont have knowledge on script writing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 08:44 AM
Hi @Eddie5
to creating a custom field and tracking incidents where the priority was downgraded in ServiceNow:
Add a Custom Field to the Incident Table
- Navigate to: System Definition > Tables.
- Select: Incident table.
- Add Field:
- Label: Priority Downgrade
- Name: u_priority_downgrade
- Type: True/False (Boolean)
- Save the Field.
Create a Business Rule
- Navigate to: System Definition > Business Rules.
- Create a New Rule:
- Name: Track Priority Downgrade
- Table: Incident [incident]
- Active & Advanced: Checked
- When to Run: Before, Update
(function executeRule(current, previous /*null when async*/) {
if (current.priority > previous.priority) {
current.u_priority_downgrade = true;
}
})(current, previous);
……………………………………………………………………………………………………
Please Mark it helpful 👍and Accept Solution✔️!! If this helps you!!