Skip to main content

create

Function create 

Source
pub fn create(
    layout: &Layout,
    project: &str,
    title: &str,
    opts: CreateOpts<'_>,
) -> Result<String>
Expand description

Append a new TODO issue to the project’s file and return the status text.

The first [[id:XXX]] in body that names a heading already in the corpus becomes :DISCOVERED_FROM:, unless that property is already set. Prose never writes :BLOCKED_BY:.

§Errors

Returns an error if the priority is not A/B/C, a date does not parse, parent is not a known org id, the id space is exhausted, or the file cannot be locked or rewritten.