restrict closing change requests to change_manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi Team,
restrict closing change requests to change_manager role
UI Action Close I have added change_manager instead of Itil in condition, after that also non changer manager is also able to close change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Sriram Pusuluri
can you please give me more input on this and provide any screenhots of your configurations
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
This is what I have added, but not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Sriram Pusuluri
the way you are calling the script include that is wrong actually
it should be like new ChangeFormUI().isCloseAvailable(current).
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Sriram Pusuluri ,
The restriction applies to only UI action visibility.
To restrict closure of change to change_manager role you need to configure a before business rule.
1.Create a Business Rule on change table as below.
2.In the advanced section add the following script:
if (!gs.hasRole('change_manager')) {
gs.addErrorMessage('Only Change Managers can close a Change Request.');
current.setAbortAction(true);
}