How to disable "Close task" action in list view of a change task?

Bharath kumar6
Tera Expert

I need to stop users having "itil" role should not be allowed to edit the "state" field in list view of CTASK.

This is done using ACL.

But there is an action if I right click --> it says "Close task" ---> this is  changing the state to "Closed Complete".

 

find_real_file.png

How do I disable this for users having "itil" role.

 

1 ACCEPTED SOLUTION

Shreya Kaushik1
Mega Guru

Hey Bharath,

 

A quick question, is this "Close Task" a custom option added for your instance as below is the screenshot form my PDI and it is not there OOB.

 

find_real_file.png

If this is a custom action added here, you can try finding the same under "System UI >>Context Menus" and try updating the condition there.

Also, you can find the same under UI Actions list on your instance. Try updating the condition field here as per your requirement which should go like : !gs.hasRole('ítil'); 

but this will restrict the ITIL users to see this ui action on the form as well.

find_real_file.png

 

Please mark helpful if it helps you in any way.

 

Regards,

Shreya

View solution in original post

3 REPLIES 3

Harish LS
Giga Guru

Hi Bharath,

This menu is coming from UI action. Please check for the UI action 'Close Task' and specify the role who should be able to do this.

 

If my reply is Helpful/Correct, please mark the answer as Helpful/Correct.

 

THanks,

Harish

Can you please elaborate.

Shreya Kaushik1
Mega Guru

Hey Bharath,

 

A quick question, is this "Close Task" a custom option added for your instance as below is the screenshot form my PDI and it is not there OOB.

 

find_real_file.png

If this is a custom action added here, you can try finding the same under "System UI >>Context Menus" and try updating the condition there.

Also, you can find the same under UI Actions list on your instance. Try updating the condition field here as per your requirement which should go like : !gs.hasRole('ítil'); 

but this will restrict the ITIL users to see this ui action on the form as well.

find_real_file.png

 

Please mark helpful if it helps you in any way.

 

Regards,

Shreya