Adding "Assigned To" to print format

Hi All,

I can’t seem to be able to add "Assigned to " in print format. It seems this field is stored as json in _assign field in database.

I tried both standard format and custom format. I can’t find the field anywhere.

Is this possible at the moment?

Thanks in advance.
Nay Min

@nay_min

If you want to display assigned user of form in Print format.
You can fetch it from ToDo.

Use following lines in your custom PrintFormat to fetch Assigned User.

frappe.db.get_value("ToDo", {"reference_type": doc.doctype, "reference_name": doc.name}, "owner")

Many thanks!

This gets the work done.