Unable to reassign catalog task within team members of the same group.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2024 12:59 PM
Hi All,
User part of a group is unable to reassign the catalog task within team members of the same group. Assigned to field is greyed out after assigning to the first user. Only users with admin role are able to reassign catalog task. Kindly help.
I am new to scripting. Found this ACL for assigned to field in catalog task
**************************************************************************************************
//gs.log('ACL on sc_task.assigned_to = current.request = ' + current.request + ' current.request_item.cat_item = ' + current.request_item.cat_item + ' current.request.u_item.cat_item = ' + current.request.u_item.cat_item + 'current.assignment_group = ' + current.assignment_group.getDisplayValue() + ' gs.getUser()ID = ' + gs.getUser().getID() + ' current.assigned_to ' + current.assigned_to + ' Num ' + current.number);
if(current.request){
if (current.request_item.cat_item == '0d2ee82edb33a6008dd07a131f961982') {
//Ony for SAR Items
var grpName =''; var ans = false;
if(current.assignment_group.getDisplayValue() != '')
grpName= current.assignment_group.sys_id;
if(current.assigned_to.nil()){
if( (grpName !='') && gs.getUser().isMemberOf(grpName) ){
ans = true;
}
}
if( (gs.getUser().getID() == current.assigned_to) ){
ans = true;
}
answer = ans;
}//SAR Only
else {
//When Not SAR
var grpName =''; var ans = false;
if(current.assignment_group.getDisplayValue() != '')
grpName= current.assignment_group.sys_id;
if(current.assigned_to.nil()){
if( (grpName !='') && gs.getUser().isMemberOf(grpName) ){
ans = true;
}
}
if( (gs.getUser().getID() == current.assigned_to) ){
ans = true;
}
answer = ans;
}
}
else {
//current.request is not available
var grpName =''; var ans = false;
if(current.assignment_group.getDisplayValue() != '')
grpName= current.assignment_group.sys_id;
if(current.assigned_to.nil()){
if( (grpName !='') && gs.getUser().isMemberOf(grpName) ){
ans = true;
}
}
if( (gs.getUser().getID() == current.assigned_to) ){
ans = true;
}
answer = ans;
}
0 REPLIES 0