Issue with Query business rule restricting catalog task that does not meet the condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 06:36 AM - edited ‎04-02-2025 07:19 AM
Hello,
I am having an issue with a query business rule that is incorrectly restricting a Catalog Task record that does not meet the rule's condition. Instead of restricting only Catalog Tasks related to the Vulnerability Remediation Request to users with the Vulnerability Remediation role, the rule is restricting all ITIL users from accessing this Catalog Task on a record that is not a vulnerability task. This issue occurred after upgrading to Xanadu.
here is the before business rule
condition: !gs.getUser().hasRole("vulnerability remediation")&& gs.getSession().isInteractive()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 06:49 AM
Hi @Rhonda9 ,
What is the actual requirement here?
Looking at your code, what i assume is that, you need to use a condition something like below:
if (gs.hasRole('admin') || gs.getUser().isMemberOf('SYS ID OF GROUP'))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 06:56 AM
Thanks for your reply, the conditions should allow users with the Vulnerability Remediation role to access the Vulnerability catalog request. When i added your logic, the query business rule is no longer restricting access. This problem occurred after our recent upgrade to Xanadu.