Filter for logged in user

I am creating a custom chart where logged-in users would be able to see the projects assigned to them. How do I create a filter for logged-in users? Any help is appreciated.
Thanks.

image

In the projects.json file of Erpnext, they have mentioned this code for creating a shortcut to show assigned tasks to logged in users. I am not sure how to use the variable frappe.session.user in Erpnext UI?

 {
   "color": "Blue",
   "format": "{} Assigned",
   "label": "Task",
   "link_to": "Task",
   "stats_filter": "{\n    \"_assign\": [\"like\", '%' + frappe.session.user + '%'],\n    \"status\": \"Open\"\n}",
   "type": "DocType"
  }

Is it possible in the UI to create such a filter with “frappe.session.user”?

I’m also looking for a way to get this done

Hi @Sellers ,

  1. Check Is Standard option
  2. Select the Module, Document Type and required information
  3. Set Filters and Leave Assign To filters empty.(Refer SS1)
  4. Use Dynamic Filters Section to set the session user(Refer SS2)

Thanks,
Daizy Modi