Show 'Close Incident' button when incident is in status new and a specific assignment group selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2022 07:24 AM
Hi everyone,
is it possible to close a incident over the close incident button when the incident is in status new and the assigned group is 'service desk'?
How would I achieve this?
Thank for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2022 07:32 AM
Hi @JohnDF
In the condition field in UI Action record you can add condition like below:
current.state=="1"&& current.assignment_group="Service desk group sys_id"
Hope it helps.
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 03:32 AM
Hi @Murthy Ch thanks for reply,
the problem is here, when I click on the button the state is changed to close and I need to enter resoultion notes and Resolution code and I have to enter it and have to click a second time. How can I avoid this behavior? I want to close instant the Incident without update this both fields.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 03:41 AM
Don't change this behavior, Instead write code like below in Script section of UI action.
Code:
current.close_code = 'Solved (Permanently)';
current.close_notes = 'Closing the incident';
current.update();
Regards,
Musab