Change task able to edit only assignment group and change manager

chinna
Mega Guru

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

 

1 ACCEPTED SOLUTION

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

View solution in original post

13 REPLIES 13

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

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
}

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

hi airsquire,

 

actually its working for assignment group not for change manager role,

 

can you help me on this.

can you post an screenshot of your ACL and the script?

Regards
Air