- 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 02:04 AM
Hi airsquire,
Thanks for sharing the code,but it works for only assignment group,
but i need both for assignment group and change manager role also.
am added a change manager role in role condition,but it not works,
can u pls suggest me on this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2019 04:16 AM
Here is the updated code of @AirSquire that checks for change_manager role
answer = false;
if(gs.getUser().isMemberOf(current.assignment_group) || gs.hasRole('change_manager'){
answer = true
}
- 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-20-2019 01:58 AM
hi airsquire,
actually its working for assignment group not for change manager role,
can you help me on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2019 03:08 AM
can you post an screenshot of your ACL and the script?
Regards
Air