Skip to main content

current_status

Function current_status 

Source
pub fn current_status(
    work_item_id: &str,
    events: &[WorkItemStatusEvent],
) -> WorkItemStatus
Expand description

The current status of a work item = the latest event (by time, then id) for it, or Todo if it has no status events yet. Pure over the unique-event-id set (duplicates collapse first).