"Assign to me" List context menu should visible when its belong to current assignment group.

Rajan kumar7
Tera Contributor

When right-clicking on a Catalog  Task, the Assign to me menu option should only be present if the user is a member of the group the Task is assigned to..

1 ACCEPTED SOLUTION

Hello,

 

As I told you will always see the assign to me button but when you try to assign it will give the alert error you cannot hide it.

View solution in original post

9 REPLIES 9

Community Alums
Not applicable

Hi @Rajan kumar7 ,

You can try :

gs.getUser().isMemberOf(current.assignment_group)

Weird
Mega Sage

The Assign to me is a UI action and you need to configure its condition to check whether the user is member of the current assignment group.

For example
gs.getUser().getMyGroups().indexOf(current.assignment_group); should work.

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

The Assign to me UI action on catalog task is coming from the task table UI action. The Catalog task does not have it's own UI action of the same name so if you directly apply the condition it will apply on all task table, to prevent that do the below:-

 

 

 

Go to the UI action Assign to me of task table:-

 

Saurav11_0-1665389529343.png

 

Change the table to catalog_task and click on insert and stay

 

Saurav11_1-1665389637860.png

 

Then apply the below condition in the condition field:-

 

Saurav11_2-1665390131267.png

 

gs.getUser().isMemberOf(current.assignment_group)

So now when you try to assign any catalog task which does not belong to you you will get the error:-

 

Saurav11_3-1665390186081.png

 

Please mark my answer as correct based on Impact.

 

Thanks saurav same thing. i have done but still showing Assign to me.it's should hidden if he is not a group member..