Skip to main content

file_task_as

Function file_task_as 

Source
pub(crate) fn file_task_as(
    store: &Store,
    filed_by: &str,
    kind: &str,
    title: &str,
    payload: &str,
    target: (String, String),
    first_line: &str,
) -> Result<(String, i64), StoreError>
Expand description

File a task for an automation, as kanban.act create does: the queue row, its card (no review: the task isn’t the operator’s to accept) and its first history line. filed_by is who the history says did it, kind the task’s tag, and first_line the history’s first line. Returns its id and number.