- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 09:30 PM
hi all,
i trust this msg finds you all well.
i created a BR on before, on insert and update when impact changes or urgency changes.
What it does is sets the XXXXX custom field to a specific value based on the priority, impact and urgency selections.
It works great for incidents created/updated manually but it does not trigger for integrations via APIs.
These integrations set the urgency and impact to specific values and the BR is not triggered.
would you why this is not working?
regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 10:02 PM
Hi @El Cuchi ,
please check if gs.isInteractive() condition is added on the condition line of the BR or Inside the Script.
if you find that statement and you want the BR to run for integrations please remove it and try to test again.
Please mark the answer as helpful and correct if helped.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 10:02 PM
Hi @El Cuchi ,
please check if gs.isInteractive() condition is added on the condition line of the BR or Inside the Script.
if you find that statement and you want the BR to run for integrations please remove it and try to test again.
Please mark the answer as helpful and correct if helped.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 02:05 PM
Hi Chaitanya,
i added the following condition to the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 09:23 PM
Hi @El Cuchi ,
you don't need add that line at all considering there will only be 2 possibilities and you are checking against both of them it always going to evaluate as true. you don't need that line at all.
since it's working even after adding that line
like @Animesh Das2 and @Ravi Chandra_K mentioned if the data is coming into the import set table find the transform map and check the "Run business rules" checkbox.
if there is import set table check the BR conditions and find whether the record is matching the conditions of the BR.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 09:37 PM - edited 12-12-2024 09:38 PM
the gs.isinteractive() did not work in the BEFORE BR, so i created a specific AFTER br for the creation/update of incidents for non-interactive.
the conditions were the same and the condition as follows.
"if(gs.isInteractive() == false) { i called a script include that updates the incident record here}