Whenever add a new comment that current object last edited (modified time) is not updated?

Hi @yabesh_sam,

Please check the reference

If you want to set for all doctype then apply it like

Server Script:

if doc.comment_type == "Comment" and doc.reference_doctype:
    upd_issue = frappe.get_doc(doc.reference_doctype, doc.reference_name)
    upd_issue.save()