Add all edit to timeline

hi all,
i need to insert all modification to an issue, and your custom filed, to time line.
Example: i have a custom field, check box, named “Accept”
When a user check this and save, the custom script write on timeline “Mario - 1 minutes ago check”

this write a comment on all refresh of page, and not only i write in a field and save the issue

i have try this

frappe.ui.form.on("Issue", {
    refresh: function(frm) {
       frm.timeline.insert_comment("Comment", frm.doc.accept);
    }
});

but receive this

File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/comment.py”, line 19, in validate_comment
if doc.comment_type==“Comment” and “” not in doc.content:
TypeError: argument of type ‘NoneType’ is not iterable

the problem is a custom field “accept” ,right?

I was able to explain the question correctly? despite my poor English?

try using:

frappe.ui.form.on("Issue", {
     validate: function(frm) {
         frm.timeline.insert_comment("Comment", frm.doc.accept);
    }
});

the work way is this

frappe.ui.form.on("Issue", {
  descrizione_analisi: function(frm) {
    // this function is called when the value of descrizione_analisi is changed.
    frm.timeline.insert_comment("Comment", frm.doc.descrizione_analisi);
  }
});

in my case print in comment the entire content of text field “descrizione_analisi”

thankyou @JoEz and Client Side Scripting Documentation

1 Like