Making Specific Task visible to specific user

hi,
I want to make certain task visible to certain users without using the function

frappe.share.add

or the share button . . In the role permission manager i have made all the project user to be not able to see any task they don’t have any read , write permission . . Basically the scenario is that i have made a custom child table in project which has a link type field called users . while creating a task after i select the project for that task and save i want only those users in that project’s child table to be able to see that task . Is there any alternative way without using

frappe.share.add

function or the share button

@rik_sanchez i think you can do it using assigning task to particular user and write query permission for that.

1 Like

@Jeel can you share any sample or example for this ? So i can use i as a reference

@rik_sanchez go to task doctype there is one assigned to option in sidebar click on plus button on click on plus button pop will open you can add user to in assign to field.


first enable server script using this command : bench set-config -g server_script_enabled 1
create server script for permission query

1 Like

@Jeel thanks man will give it a go with this