Action

Advance Tasks

Posted by agiletortoise, Last update about 1 year ago - Unlisted

Loop over tasks found in the editor, and advance each to its next state any completed tasks to their initial state as defined by the syntax.

For tasks with only two states, this toggles the state.

Steps

  • script

    // loop over tasks in the editor
    // resetting each to its initial state
    // note the loop runs from last to first
    // to avoid issues with tasks that change
    // the length of the content
    
    for (const task of editor.tasks.reverse()) {
    	editor.advanceTask(task)
    }
    

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.