- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2019 04:19 PM
I have a business rules that I need to run only on the first time an incident is set to RESOLVED state, if it goes back to any other state and then it is set to resolved again I don't wan't the business rule to run on it again.
I thought of a few ways but no luck so far, at this point I am doubting my knowledge on BRs, any help is appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2019 07:32 AM
Yes, that is something I was trying to avoid, but it is the easiest way to do this. Thank you for replying.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2019 09:31 PM
You do need to create any custom field.
The oob business rule only sets the resolved_at date time if the field is empty, so only the first time it is resolved. You would either need edit that business rule, or add another business rule at a higher order (runs after) that sets the resolved date time every time the state changes to resolved.
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2019 11:18 PM
this cannot be done, without having a flag/field to store the resoved status.
create a new field/flag and set the flag when incident is resolved
Add conditions in br to check the flag

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2019 11:32 PM
Yes, I agree with SatheeshKumar
Add a flag to the incident table, which is set to false, when you create an incident record. Set the field to "Read-Only", so that it can only be changed by scripts.
You should use your business rule to trigger when the state of the incident gets set to "Resolved", and then check, if the flag is set to "false". If yes, execute your script and then set the flag to "true".
The next time, you will run the business rule, the business rule will fire, but your condition will prevent from running the script again.
Regards
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2019 07:32 AM
Yes, that is something I was trying to avoid, but it is the easiest way to do this. Thank you for replying.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2019 11:07 PM