- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 06:33 PM
Hello, It's Kentaro.
I tried two types of Filter Conditions in business rules.
But the Action is not executed.
Filter Conditions 1
Filter Conditions 2
Action
Please let me know if there are any mistakes
Thannks,
Kentaro.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:07 PM
@Kentaro Numata If you want to do it without script, you can do so, but closed by field will not populate. See the below screenshots.
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:03 PM
This has to be handled a bit different, along with state we need to set few other fields and I feel it should be done through script. Please change your BR and Advanced one and before - update, like the one shown below.
Advanced : True
When: Before
Update: True
Condition: State :: Changes to :: Resolved
And in the script field in Advanced section, use the following code,
(function executeRule(current, previous /*null when async*/ ) {
current.incident_state = IncidentState.CLOSED;
current.state = IncidentState.CLOSED;
current.active = false;
current.closed_by = current.resolved_by;
})(current, previous);
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:07 PM
@Kentaro Numata If you want to do it without script, you can do so, but closed by field will not populate. See the below screenshots.
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 07:24 PM
Hello.
Thank you so much!!!!!!!!!!!!
I was able to implement it!!!
Thanks,
Kentaro.