Using document variables in contract template

Hi, can I use values from the document as in a Jinja template in contract templates? I tries both {{ doc.party_name }} or {{ party_name }} but it was never rendered with the actual values in the document itself.

May I bump this?

Yes you may! I’m seeing the same bug in ERPNext: v12.10.0 (version-12)
Frappe Framework: v12.7.2 (version-12)

If you report a bug, link to it here, please.

Also related is If Contract part type is Customer party user cannot be customer contact · Issue #22560 · frappe/erpnext · GitHub but I may be making an assumption about party_user.

Do you guys know if this was fixed and if it is possible to put information from a link of a link. For example, when the party is selected, I would like to have their address and phone number included as Jinja variables.