- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 01:11 AM
Hi All,
i have a requirement like in the change task all the fields should be editable by only the change manager and assignment group members(i mean CTask assignment group only).
How can i acheive this, if we need to write on load client script, Or by through acls.
can anyone help me on this.
Regards,
Chinna
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2019 08:25 PM
Hi Chinna,
My previous code was to check for a user, which is assigned as a change manager(in the field "change_manager_field_name") on the change ticket. if you need to validate it for "change_manager" role the script will be like
answer = false;
if(gs.getUser().isMemberOf(current.assignment_group) || gs.hasRole('change_manager'){
answer = true
}
Regards
Air
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 01:14 AM
write "write" acl for change task colomun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 01:17 AM
Hi manish,
thanks for your quick reply, if need script for this.
can pls share script for this.
Regards,
chinna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 01:17 AM
Use table.* write ACL and the script will be
answer = false;
if(gs.getUser().isMemberOf(current.assignment_group)){
answer = true
}
Regards
Air
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 01:35 AM
Updating the code to include change manager also
Note: edit the script to use your change manager field name on the change form
answer = false;
if(gs.getUser().isMemberOf(current.assignment_group) || gs.getUserID() == current.change_request.change_manager_field_name){
answer = true
}
Regards
Air