Tasks and projects
A project is a folder with a project note. A task is a folder in that project: the split layout.
A task
tasks/task-012 - New pricing page/
task-012 - New pricing page.md the root file
concept.md, instructions.md, … the parts
timeline.json the steps of the task. Opfold writes it.
---
tags: [task]
taskStatus: planned
id: task-012
project: Website Relaunch
layout: split
---
# New pricing page
## Goal
The website shows three plans on one page.
## Status
```opfold-timeline
```
The value taskStatus is the state of the task. You can change it in the app or in the file.
An open task must use the split layout. opfold kit doctor reports an open task in an older layout, for example a single file. An archived task can keep its older layout: Opfold reads it as a plain note, and no command writes to it.
The timeline of a task
Opfold records each step of a task in the file timeline.json of the task folder: the skill, the change of the state, the start, the end, the result, the reason, the agent, the model, and the tokens. A workflow run and a skill in a chat both write it. No agent writes a timeline.
The block opfold-timeline of the root file shows the file as a table. The table changes when a step starts or ends. Obsidian without Opfold shows an empty code block.
A step that started and did not end is an open step. A card with an open step shows it, with two buttons:
- Mark as done ends the step as successful. The task gets the state of a successful end.
- Mark as failed ends the step as failed. The task keeps the state of the start of the step.
Use the buttons when an agent forgot to report the end of its step.
Create a task
Select New task in the Tasks area, or Create task in the search.
| Field | Meaning |
|---|---|
| Project | The project of the task |
| Headline | The title |
| Goal | What the task must reach |
| Tags, Jira, Branch | Optional values for your process |
| Plan review, Worktree | Options that your workflows can read |
Create a project
Select Create project in the search. The form has the fields Name, Goal, Scope, Out of scope, Constraints, GitHub, Branch strategy, and Local path.
List and board
The Tasks area has two forms. List shows the tasks as rows. Board shows one lane for each group of task states.
| Lane | Task states |
|---|---|
| Backlog | created, open, todo, pending |
| Planning | planning, planned, reviewing-plan |
| Implementation | implementing, implemented |
| Review | reviewing, finalizing, in-review |
| Done | completed, done, closed |
Move a card to another lane to change the task state.
A task has two kinds of state:
| State | Field in the task file | What it does on the board |
|---|---|---|
| Task state | taskStatus |
Selects the lane of the card. You, a lane, or a task step set it. |
| Workflow state | workflowStatus |
Groups the cards inside a lane. Opfold sets it for each step of a workflow run and of a skill in a chat. |
The contract opfold.yaml of a skill names the states of its steps. A task step changes both states, so the card moves to another lane. A sub step, for example helper-consolidation, changes only the workflow state. See Skills.
In Board lanes, the field Task states lists the task states of each lane. The info symbol next to the field explains the two kinds of state.
To leave the lane settings, select List, Board, or Board lanes again. As with Cancel, a change that you did not save is lost.
The groups of a lane, for example planning or implementing, have the order of the steps of your workflows. A task without a workflow state is in the last group. A lane without a workflow state on its tasks shows no group titles.
Automated flows
A lane can start work when you drop a task on it.
- Select Board lanes.
- Select a lane.
- Set After a drop:
| Value | What happens when a task arrives in the lane |
|---|---|
| Only change the state | The task gets the first task state of the lane. |
| Run a workflow | Opfold starts the workflow that you select for that task. |
| Open a chat session with a prompt | A session opens with your prepared message and the task. |
| Select at the drop | Opfold asks you each time. |
Example: the lane Planning runs the workflow plan.yaml. When you move a task into that lane, Opfold runs the plan for that task.
A lane with Open a chat session with a prompt and an empty prompt starts the skill whose contract opfold.yaml starts a task state of the lane. For the lane Planning, that is for example /task-planning {{task}}. The prompt field shows this default as its placeholder.
With the Atlassian plugin, a lane can also name a Jira status. After a drop, Opfold asks you, and a session moves the Jira issue of the task to that status in the background. A card in such a lane also has a sync button. The button moves the Jira issue to the status of the lane without a drop. See the page of the Atlassian plugin.
A run on a card
A card shows the last workflow run of its task: the name of the workflow and one point for each step. Select the run to open it in the run history of the Workflows area. The list shows the same run next to each task, and the right-click menu has Open the workflow run.
Each card has two buttons. The chat button starts a session for the task: the task file is attached, and the name of the task with a colon starts the message. The play button runs a workflow for the task. A right click on a card shows the same two actions.
Delete a task
Right click on a task and select Delete. The task goes into the trash of your computer, so you can restore it.