Skip to main content

touch_for_attribute_change

Function touch_for_attribute_change 

Source
pub fn touch_for_attribute_change(item: &mut Item, by: &str)
Expand description

Record an attribute-level mutation on an item. Sets updated / updated_by for sort recency AND appends an entry to history for the audit footer. Use this whenever you mutate an item attribute (status, priority, deps, assignee, edit, …). Do NOT use it for comment add / edit / rm; those use touch_for_comment_change instead, because per-comment audit lives on the comment itself.