User cannot see the change ticket

Neetu3
Kilo Contributor

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

 

find_real_file.png

 

1 ACCEPTED SOLUTION

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);
}

View solution in original post

20 REPLIES 20

Try to find like this -

find_real_file.png

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);
}

Neetu3
Kilo Contributor

Furthermore i also got the read ACL below

Please see both reply and try to solve my issue

find_real_file.png

find_real_file.png

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.

Yes this the only BR i got and its for change task table.

i modified the filter as per your requirement.

Today is the last day to solve this problem otherwise it gonna be a escalation.. I request to help me to solve this

 

find_real_file.png