Is there any way to restrict the Activities inside incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 06:55 AM
Hi,
I have the field u_operational_comments of type Journal. Is there any way to restrict the Activities so that only users from the same group will be able to see each other comments in the activities when using u_operational_comments to type noes.
For example, only users that are in the same group like Alon Grod (in this example) will be able to see the comment 'test123'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 07:11 AM
There are a few ways to restrict the activities that run inside of an incident. The first is to create a custom Activity and only include the actions that you want to happen inside of the incident. The second is to use the "Run only allowed activities" setting inside of the Security tab of an incident. This will restrict the activities that can run inside of an incident to only those that are allowed by the setting. The third is to use a Custom Field inside of an incident and set the value to "Restricted". This will restrict the activities that can run inside of the incident to only those that have the "Restricted" custom field. For more information click here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 07:17 AM
You will need to create a custom ACL(s) and use a script to enforce that logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 07:19 AM
@Mike_R hi can you please be more specific
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 07:29 AM
Here's an example. Change the "Additional comments" field to your field, and customize the script as needed.
if (gs.getUser().isMemberOf(current.assignment_group)) {
answer = true;
} else {
answer = false;
}