1
0
mirror of synced 2026-01-02 21:04:32 -05:00
Files
docs/content/issues/tracking-your-work-with-issues/about-tasklists.md
Omer Bensaadon 89835e1b87 add more error messages (#37020)
Co-authored-by: Steve Guntrip <stevecat@github.com>
2023-05-11 08:57:15 +00:00

7.4 KiB

title, intro, versions, redirect_from
title intro versions redirect_from
About tasklists You can use tasklists to divide your issues into smaller subtasks.
feature
projects-v2-tasklists
/early-access/issues/about-tasklists

{% data reusables.projects.tasklists-release-stage %}

About tasklists

Tasklists add support for hierarchies of issues on {% data variables.product.product_name %}, helping you to keep track of your issues, divide your issues into smaller subtasks, and create new relationships between your issues.

Tasklists build upon the previous iteration of beta task lists, retaining the ability to convert items into issues, display the progress of a tasklist, and create a "tracks/tracked by" relationship between issues.

The issues you add to your tasklists will be automatically populated to show their assignees and any labels applied.

Two views of the same issue. In one, the body is being edited to include the Markdown for tasklists. In the other, the body includes rendered tasklists.

About integration with {% data variables.projects.projects_v2 %}

Your project's side-panel displays an issue's place in the hierarchy on a breadcrumb menu, allowing you to navigate through the issues included in your tasklists. You can also add the Tracks and Tracked by fields to your project views to quickly see the relationships between your issues. For information, see "AUTOTITLE."

Creating tasklists with Markdown

{% note %}

Note: If {% data variables.product.product_name %} cannot render your tasklist, make sure it is formatted like the example below.

Tasklists do not currently support:

  • Duplicate issue or pull request links.
  • Indented tasks (i.e, nested tasklist).
  • Empty tasks (i.e, - [ ] on a line by itself).
  • Stray newlines.
  • Draft tasks that exceed 512 characters.

{% endnote %}

You can create a tasklist using Markdown in the issue description (the opening comment of an issue). You can include links to issues and pull requests or create draft issues.

  1. Start creating a new issue or edit the issue description of an existing issue.
  2. To begin your tasklist, type ```[tasklist] (triple backticks and tasklist inside square brackets) on a new line in the issue description.
  3. Optionally, type ### TITLE on the next line, replacing TITLE with a title for your tasklist.
  4. For each item you want to add to your tasklist, type - [ ] on a new line, followed by a space, and either a link to an issue, a link to a pull request, or some text to create a draft issue.
    • You must provide a full link to an issue or pull request. For example, https://github.com/octo-org/octo-repo/issues/45.
    • Tasks can be formatted with Markdown.
    • Tasks must not exceed 256 characters in length.
  5. To finish your tasklist, type ``` on a new line after the last item.

Your finished tasklist should look like this:

```[tasklist]
### My tasks
- [ ] https://github.com/octo-org/octo-repo/issues/45
- [ ] Draft issue title
```

Your tasklist will be rendered by {% data variables.product.product_name %} when you save the issue. You can then make changes and add issues and draft issues using the {% data variables.product.product_name %} UI. If you edit the issue description, you will be able to modify the Markdown directly or copy the Markdown to duplicate the tasklist in other issues.

You can also click {% octicon "checklist" aria-label="Add tasklist" %} in the formatting toolbar to insert a tasklist when creating a new issue or editing an issue description.

Screenshot of the new issue form. In the formatting toolbar, a checklist icon is outlined in dark orange.

Adding issues to a tasklist

  1. At the bottom of your tasklist, click Add item to Tasks.

  2. Select the issue to add to your tasklist.

    • To add a recently updated issue from the repository, click the issue in the dropdown, or use your arrow keys to select it and then press Enter.
    • To search for an issue in the repository, start typing the title of an issue or the issue's number and click on the result, or use your arrow keys to select it and press Enter.
    • To add an issue directly using its URL, paste the URL of an issue and press Enter.

Creating draft issues in a tasklist

Draft issues are useful to quickly capture ideas that you can later convert into issues. Unlike issues and pull requests that are referenced from your repositories, draft issues exist only in your tasklist.

  1. At the bottom of your tasklist, click Add item to Tasks.
  2. In the "Type to add an item or paste in an issue URL" field, type your draft issue title and press Enter.

Converting draft issues to issues in a tasklist

You can convert draft issues into issues. Issues are created in the same repository as the tasklist's parent issue.

  1. Next to the draft issue you want to convert, click {% octicon "kebab-horizontal" aria-label="tracking block item menu" %}.

    Screenshot of a tasklist. To the right of a task, the tracking block item menu, which is labeled with a horizontal kebab icon, is outlined in dark orange.

  2. In the menu, click Convert to issue.

Removing an issue or draft issue from a tasklist

You can remove issues and draft issues from your tasklist. Issues removed from a tasklist are not removed from the repository.

  1. Next to the draft issue you want to remove, select {% octicon "kebab-horizontal" aria-label="tracking block item menu" %}.

    Screenshot of a tasklist. To the right of a task, the tracking block item menu, which is labeled with a horizontal kebab icon, is outlined in dark orange.

  2. In the menu, click Remove.

Changing the title of a tasklist

When you create a new tasklist, the default title is "Tasks." You can modify the title by editing the issue's markdown.

  1. In the top-right of the issue body, select {% octicon "kebab-horizontal" aria-label="Show options" %} and click Edit.

    Screenshot of the header of an issue comment. In the right corner, a horizontal kebab icon is outlined in dark orange.

  2. In the fenced code block that starts with ````[tasklist], add a header with your new title, such as ## My new title`.

    Screenshot of an issue comment in edit mode. Under the line that says "```tasklist", a line that says "## My new title" is outlined in dark orange.

  3. Click Update comment.

Copying a tasklist

When you copy your tasklist using the "Copy Markdown" option, {% data variables.product.product_name %} copies Markdown to your clipboard and includes the Issue's name so you can paste the tasklist outside of GitHub without losing context.

  1. In the top-right of your tasklist, click {% octicon "kebab-horizontal" aria-label="tracking block item menu" %}.

    Screenshot of a tasklist. The tracking block item menu, which is labeled with a horizontal kebab icon, is outlined in dark orange.

  2. In the menu, click Copy markdown.