- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2018 01:38 AM
I got one ticket where user faced one problem that he cannot able to see the change ticket.
Even he is in additional contact.
I have checked from the access end..... its fine there.
Where i need to check so that he can able to see the ticket
Solved! Go to Solution.
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2018 10:21 PM
Its not on the Change Task Table its on the Task Table.
Have you modified the BR like this -
if (!gs.getUser().hasRoles() && gs.getSession().isInteractive()) { //Check if the user has no role and if the session is an actual user session
//If they DON'T have the 'itil' role then do the following...
var u = gs.getUserID(); //Get the sys_id value of the current user
var name = gs.getUserName(u);
var applis = getMyScopeAppli();
var q = current.addQuery('u_requester', u); //Modify the current query on the incident table so that if the user is listed in the 'u_requester' field they can see the record
q.addOrCondition('u_requested_for', u); //Also allow the user access if they are the Requested for
q.addOrCondition('u_additional_contact', "CONTAINS", u); //Also allow the user access if they are on Additional Contact
q.addOrCondition('cmdb_ci', 'IN', applis); //Also allow the user to view tickets on his application scope
gs.print('query restricted to user: ' + name);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2018 05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2018 05:22 AM
Yes i got the below answer from the search told by you
Its query business rule written on the Change task table
if (!gs.getUser().hasRoles() && gs.getSession().isInteractive()) { //Check if the user has no role and if the session is an actual user session
//If they DON'T have the 'itil' role then do the following...
var u = gs.getUserID(); //Get the sys_id value of the current user
var name = gs.getUserName(u);
var applis = getMyScopeAppli();
var q = current.addQuery('u_requester', u); //Modify the current query on the incident table so that if the user is listed in the 'u_requester' field they can see the record
q.addOrCondition('u_requested_for', u); //Also allow the user access if they are the Requested for
q.addOrCondition('cmdb_ci', 'IN', applis); //Also allow the user to view tickets on his application scope
gs.print('query restricted to user: ' + name);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2018 05:25 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2018 06:01 AM
Is this the only BR you got ?
Above BR is in Change Request Table or Change Task Table?
if it is in Change Request Table then add one more addOrCondition as per your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2018 09:32 PM