# Capture: Add a Task to a Kanban Board

> Add a task to a chosen lane on an Obsidian Kanban board by capturing after the lane heading, with optional date formatting

> Ready-made QuickAdd package for this workflow: [package JSON](https://quickadd.obsidian.guide/packages/kanban-task.quickadd.json). Copy its contents and import them in Obsidian via **Settings → QuickAdd → Import package…**.

You end up with one QuickAdd command that drops whatever you type onto a Kanban board as a card in the lane you choose - without opening the board first.

## Prerequisites

- The [Kanban](https://github.com/mgmeyers/obsidian-kanban) community plugin, installed and enabled.
- A Kanban board with at least one lane. Each lane is a Markdown heading, for example `## Backlog`.

## Setup

Imported the package above? Follow **After importing** in the card, then skip the manual setup below and read [What you get](#what-you-get).

1. In **Settings → QuickAdd**, click **New choice** → **Capture**. The Capture builder opens; click its name at the top to rename it (for example, `Add to board`).
2. Set **Capture to** to your Kanban board file.
3. Enable the **Task** toggle (in the **Content** section). This wraps your text in `- [ ]` so Kanban reads it as a card.
4. Set **Write position** to **After line…**.
5. In the **Insert after** field that appears, write `## ` followed by the name of the lane you want to add the card to. For a lane called `Backlog`, that is `## Backlog`.

## What you get

You run the choice, type `Buy milk`, and QuickAdd adds `- [ ] Buy milk` as a new card at the top of the `Backlog` lane.

## Add a date to the card

Kanban recognizes a date written as `@{YYYY-MM-DD}` on a card. Set **Capture format** to add one (before QuickAdd 2.30.0, turn on the **Capture format** toggle first):

- Use today's date automatically:

  ```
  {{VALUE}} @{{{DATE}}}
  ```

- Get asked which date to use each time:

  ```
  {{VALUE}} @{{{VDATE:DATE,YYYY-MM-DD}}}
  ```

  You can type an exact date or a natural-language date such as `tomorrow`.

Read more about [format syntax here](/docs/FormatSyntax/).

![A Capture choice that adds a task to a board](../Images/examples/capture-add-task.png)