- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2024 08:42 AM
Hi all,
what is trigger rule for "P1 incident lasting more than 30 mins"
i tried "Priority is 1-critical AND created relative after 30 mins from now".
but it's not working. could anyone help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 07:58 AM
Hi @SM123,
The short answer (based on my testing via a PDI and this statement in the Docs): No
The conditions are only evaluated on creation and update - this means in order for this rule to trigger, an update would have to happen (or when the incident is created) and the conditions to equal true.
For example - if the incident is updated 1 hour after, or several hours after - only when an update has taken place will the rule be evaluated and triggered regardless of the condition of 'created' at or before 30 mins ago.
As mentioned, you can either select the Propose Major Incident on creation, or have this controlled via a scheduled job.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2024 07:19 AM
Hi @SM123,
It is...
A quick point to note. The 'Major Incident Trigger Rule' is exactly that with the keyword trigger. The rule will trigger on update of the record.
Update the 'Description' field or similar (making sure the conditions still match) and you'll see the Incident promoted (or proposed depending on what you have set) to a Major Incident.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 01:27 AM
HI @Robbie ,
it was really helpful but is there any ServiceNow product documentation which supports your theory because my lead says it should not work like that. Again, updating an incident it should not be the case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 01:36 AM
Hi @SM123,
Check the below SN Documentation link and specifically the point - "Major incident trigger rules are evaluated asynchronously each time an incident is created or updated provided the following conditions are met:
- The incident record doesn't have the Parent Incident populated, which means that the current incident isn't a child incident.
- The major incident isn't proposed or accepted.
- The incident is active.
When I've tested on my PDI, these are only triggered when an Incident is created or updated. There is no job running int eh background checking for these - however you could implement one - however you need to consider the performance aspect.
Have you seen the trigger rule run without an update or on initial creation?
o help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 01:42 AM
HI @Robbie
yes trigger rule runs for "created at or after last 30min" this one run just after creation of an incident it will be proposed as major incident candidate. we don't have to update again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 01:54 AM - edited ‎02-29-2024 02:52 AM
Hi @SM123,
Step back and think about it logically.....
"created at or after last 30min" will always run. You're effectively checking if the incident was created in the last 30 minutes, which of course as it's just been created, it will always execute.
As stated above, you could change this to "created at or before last 30min" however the rule looks to only execute if the incident has a further update and the conditions are met, so in your case, an update has been made at or after 30 mins of the initial creation.
If you want this automated, I would suggest having a scheduled job that runs in the background every 30 mins and checks for any incidents that meet the criteria and updates the incident to Major rather than the trigger rule.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.
Thanks, Robbie