- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 01:14 AM
Hi All,
After upgrading to San-Diego, I found an issue in closing the CTasks.
The Assignment Group member of the change request, is able to close the change tasks also. This should not happen. Only the member of the Assignment group of the Ctask should be able to close the CHange task.
So I feel like, the Close task button should be visible to only Assignment Group member of the Ctask.
Please help ,me here with code,
The cureent UI action is like this;
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 01:27 AM
Hi,
Please add this in your condition.
current.getUser().hasRole('admin) || (current.assingment_group != '' && gs.getUser().isMemberOf(current.assignment_group);
Regards
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 01:25 AM
Hi
Add below as && condition in your current setup
gs.getUser().isMemberOf(current.assignment_group);
Thank you
Prasad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 01:27 AM
Hi,
Please add this in your condition.
current.getUser().hasRole('admin) || (current.assingment_group != '' && gs.getUser().isMemberOf(current.assignment_group);
Regards
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 01:27 AM
you can add additional condition like gs.getUser().isMemberOf(current.getValue("assignment_group"));