debian-mirror-gitlab/doc/user/tasks.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

292 lines
11 KiB
Markdown
Raw Normal View History

2021-12-11 22:18:48 +05:30
---
stage: Plan
group: Project Management
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2021-12-11 22:18:48 +05:30
---
# Tasks **(FREE)**
2022-08-13 15:12:31 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/334812) in GitLab 14.5 [with a flag](../administration/feature_flags.md) named `work_items`. Disabled by default.
> - [Creating, editing, and deleting tasks](https://gitlab.com/groups/gitlab-org/-/epics/7169) introduced in GitLab 15.0.
2022-08-27 11:52:29 +05:30
> - [Enabled on GitLab.com and self-managed](https://gitlab.com/gitlab-org/gitlab/-/issues/334812) in GitLab 15.3.
2022-10-11 01:57:18 +05:30
Known limitation:
2022-08-27 11:52:29 +05:30
- [Tasks currently cannot be accessed via REST API.](https://gitlab.com/gitlab-org/gitlab/-/issues/368055)
For the latest updates, check the [Tasks Roadmap](https://gitlab.com/groups/gitlab-org/-/epics/7103).
2021-12-11 22:18:48 +05:30
FLAG:
2022-08-27 11:52:29 +05:30
On self-managed GitLab, by default this feature is available. To hide the feature,
2023-01-13 00:05:48 +05:30
ask an administrator to [disable the feature flags](../administration/feature_flags.md) named `work_items`.
2022-08-27 11:52:29 +05:30
On GitLab.com, this feature is available.
2021-12-11 22:18:48 +05:30
Use tasks to track steps needed for the [issue](project/issues/index.md) to be closed.
When planning an issue, you need a way to capture and break down technical
2022-01-26 12:08:38 +05:30
requirements or steps necessary to complete it. An issue with related tasks is better defined,
2021-12-11 22:18:48 +05:30
and so you can provide a more accurate issue weight and completion criteria.
2022-01-26 12:08:38 +05:30
Tasks are a type of work item, a step towards [default issue types](https://gitlab.com/gitlab-org/gitlab/-/issues/323404)
in GitLab.
For the roadmap of migrating issues and [epics](group/epics/index.md)
2023-03-17 16:20:25 +05:30
to work items and adding custom work item types, see
[epic 6033](https://gitlab.com/groups/gitlab-org/-/epics/6033) or the
2021-12-11 22:18:48 +05:30
[Plan direction page](https://about.gitlab.com/direction/plan/).
2022-10-02 17:18:49 +05:30
## View tasks
2022-10-11 01:57:18 +05:30
View tasks in issues, in the **Tasks** section.
2022-10-02 17:18:49 +05:30
You can also [filter the list of issues](project/issues/managing_issues.md#filter-the-list-of-issues)
for `Type = task`.
2023-01-13 00:05:48 +05:30
If you select a task from an issue, it opens in a modal window.
If you select a task to open in a new browser tab, or select it from the issue list,
the task opens in a full-page view.
2022-07-23 23:45:48 +05:30
## Create a task
2022-10-02 17:18:49 +05:30
Prerequisites:
2023-03-04 22:38:38 +05:30
- You must have at least the Reporter role for the project, or the project must be public.
2022-10-02 17:18:49 +05:30
2022-07-23 23:45:48 +05:30
To create a task:
2022-10-11 01:57:18 +05:30
1. In the issue description, in the **Tasks** section, select **Add**.
2023-01-13 00:05:48 +05:30
1. Select **New task**.
2022-10-02 17:18:49 +05:30
1. Enter the task title.
1. Select **Create task**.
2022-07-23 23:45:48 +05:30
2023-05-08 21:46:49 +05:30
### From a task list item
2023-04-23 21:23:45 +05:30
2023-05-08 21:46:49 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/377307) in GitLab 15.9.
2023-04-23 21:23:45 +05:30
Prerequisites:
- You must have at least the Reporter role for the project.
In an issue description with task list items:
1. Hover over a task list item and select the options menu (**{ellipsis_v}**).
1. Select **Convert to task**.
The task list item is removed from the issue description and a task is created in the tasks widget from its contents.
Any nested task list items are moved up a nested level.
2023-01-13 00:05:48 +05:30
## Add existing tasks to an issue
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/381868) in GitLab 15.6.
Prerequisites:
- You must have at least the Guest role for the project, or the project must be public.
To add a task:
1. In the issue description, in the **Tasks** section, select **Add**.
1. Select **Existing task**.
1. Search tasks by title.
1. Select one or multiple tasks to add to the issue.
1. Select **Add task**.
2022-07-23 23:45:48 +05:30
## Edit a task
2022-10-02 17:18:49 +05:30
Prerequisites:
- You must have at least the Reporter role for the project.
2022-07-23 23:45:48 +05:30
To edit a task:
2022-10-11 01:57:18 +05:30
1. In the issue description, in the **Tasks** section, select the task you want to edit.
2022-10-02 17:18:49 +05:30
The task window opens.
1. Optional. To edit the title, select it and make your changes.
1. Optional. To edit the description, select the edit icon (**{pencil}**), make your changes, and
select **Save**.
1. Select the close icon (**{close}**).
2023-01-13 00:05:48 +05:30
### Using the rich text editor
> - Rich text editing in the modal view [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/363007) in GitLab 15.6 [with a flag](../administration/feature_flags.md) named `work_items_mvc`. Disabled by default.
> - Rich text editing in the full page view [introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/104533) in GitLab 15.7.
FLAG:
On self-managed GitLab, by default the rich text feature is not available. To make it available per group, ask an
administrator
to [enable the feature flag](../administration/feature_flags.md) named `work_items_mvc`. On GitLab.com, this feature
is not available. The feature is not ready for production use.
Use a rich text editor to edit a task's description.
Prerequisites:
- You must have at least the Reporter role for the project.
To edit the description of a task:
1. In the **Tasks** section, select the title of the task you want to edit.
The task window opens.
1. Next to **Description**, select the edit icon (**{pencil}**). The description text box appears.
1. Above the text box, select **Rich text**.
1. Make your changes, and select **Save**.
2022-10-02 17:18:49 +05:30
## Remove a task from an issue
Prerequisites:
- You must have at least the Reporter role for the project.
You can remove a task from an issue. The task is not deleted, but the two are no longer connected.
It's not possible to connect them again.
To remove a task from an issue:
2022-10-11 01:57:18 +05:30
1. In the issue description, in the **Tasks** section, next to the task you want to remove, select the options menu (**{ellipsis_v}**).
2022-10-02 17:18:49 +05:30
1. Select **Remove task**.
2022-07-23 23:45:48 +05:30
## Delete a task
2022-10-02 17:18:49 +05:30
Prerequisites:
- You must either:
- Be the author of the task and have at least the Guest role for the project.
- Have the Owner role for the project.
2022-07-23 23:45:48 +05:30
To delete a task:
2021-12-11 22:18:48 +05:30
2022-10-11 01:57:18 +05:30
1. In the issue description, in the **Tasks** section, select the task you want to edit.
2022-10-02 17:18:49 +05:30
1. In the task window, in the options menu (**{ellipsis_v}**), select **Delete task**.
1. Select **OK**.
2022-10-11 01:57:18 +05:30
## Assign users to a task
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/334810) in GitLab 15.4.
To show who is responsible for a task, you can assign users to it.
Users on GitLab Free can assign one user per task.
Users on GitLab Premium and higher can assign multiple users to a single task.
See also [multiple assignees for issues](project/issues/multiple_assignees_for_issues.md).
Prerequisites:
- You must have at least the Reporter role for the project.
To change the assignee on a task:
1. In the issue description, in the **Tasks** section, select the title of the task you want to edit.
The task window opens.
1. Next to **Assignees**, select **Add assignees**.
2022-11-25 23:54:43 +05:30
1. From the dropdown list, select the users to add as an assignee.
2022-10-11 01:57:18 +05:30
1. Select any area outside the dropdown list.
2022-11-25 23:54:43 +05:30
## Assign labels to a task
2022-10-11 01:57:18 +05:30
2022-11-25 23:54:43 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/339756) in GitLab 15.5.
2022-10-11 01:57:18 +05:30
2023-03-17 16:20:25 +05:30
Prerequisites:
- You must have at least the Reporter role for the project.
2022-11-25 23:54:43 +05:30
To add [labels](project/labels.md) to a task:
1. In the issue description, in the **Tasks** section, select the title of the task you want to edit. The task window opens.
1. Next to **Labels**, select **Add labels**.
1. From the dropdown list, select the labels to add.
1. Select any area outside the dropdown list.
## Set a start and due date
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/365399) in GitLab 15.4 [with a flag](../administration/feature_flags.md) named `work_items_mvc_2`. Disabled by default.
> - [Enabled on GitLab.com and self-managed](https://gitlab.com/gitlab-org/gitlab/-/issues/365399) in GitLab 15.5.
2022-10-11 01:57:18 +05:30
You can set a [start and due date](project/issues/due_dates.md) on a task.
Prerequisites:
- You must have at least the Reporter role for the project.
You can set start and due dates on a task to show when work should begin and end.
To set a due date:
1. In the issue description, in the **Tasks** section, select the title of the task you want to edit.
The task window opens.
1. If the task already has a due date next to **Due date**, select it. Otherwise, select **Add due date**.
1. In the date picker, select the desired due date.
To set a start date:
1. In the issue description, in the **Tasks** section, select the title of the task you want to edit.
The task window opens.
1. If the task already has a start date next to **Start date**, select it. Otherwise, select **Add start date**.
1. In the date picker, select the desired due date.
The due date must be the same or later than the start date.
If you select a start date to be later than the due date, the due date is then changed to the same day.
2023-01-13 00:05:48 +05:30
## Add a task to a milestone
2023-03-04 22:38:38 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/367463) in GitLab 15.5 [with a flag](../administration/feature_flags.md) named `work_items_mvc_2`. Disabled by default.
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/367463) to feature flag named `work_items_mvc` in GitLab 15.7. Disabled by default.
> - [Enabled on GitLab.com and self-managed](https://gitlab.com/gitlab-org/gitlab/-/issues/367463) in GitLab 15.7.
2023-01-13 00:05:48 +05:30
You can add a task to a [milestone](project/milestones/index.md).
You can see the milestone title when you view a task.
If you create a task for an issue that already belongs to a milestone,
the new task inherits the milestone.
Prerequisites:
- You must have at least the Reporter role for the project.
To add a task to a milestone:
1. In the issue description, in the **Tasks** section, select the title of the task you want to edit.
The task window opens.
1. Next to **Milestone**, select **Add to milestone**.
2023-03-17 16:20:25 +05:30
If a task already belongs to a milestone, the dropdown list shows the current milestone.
2023-01-13 00:05:48 +05:30
1. From the dropdown list, select the milestone to be associated with the task.
2022-10-11 01:57:18 +05:30
## Set task weight **(PREMIUM)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/362550) in GitLab 15.3.
Prerequisites:
- You must have at least the Reporter role for the project.
You can set weight on each task to show how much work it needs.
This value is visible only when you view a task.
To set issue weight of a task:
1. In the issue description, in the **Tasks** section, select the title of the task you want to edit.
The task window opens.
1. Next to **Weight**, enter a whole, positive number.
1. Select the close icon (**{close}**).
2022-11-25 23:54:43 +05:30
## Add a task to an iteration **(PREMIUM)**
2023-03-04 22:38:38 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/367456) in GitLab 15.5 [with a flag](../administration/feature_flags.md) named `work_items_mvc_2`. Disabled by default.
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/367456) to feature flag named `work_items_mvc` in GitLab 15.7. Disabled by default.
> - [Enabled on GitLab.com and self-managed](https://gitlab.com/gitlab-org/gitlab/-/issues/367456) in GitLab 15.7.
2022-11-25 23:54:43 +05:30
FLAG:
2023-03-04 22:38:38 +05:30
On self-managed GitLab, by default this feature is available. To hide the feature, ask an administrator to [disable the feature flag](../administration/feature_flags.md) named `work_items_mvc`.
On GitLab.com, this feature is available.
2022-11-25 23:54:43 +05:30
You can add a task to an [iteration](group/iterations/index.md).
You can see the iteration title and period only when you view a task.
Prerequisites:
- You must have at least the Reporter role for the project.
To add a task to an iteration:
1. In the issue description, in the **Tasks** section, select the title of the task you want to edit.
The task window opens.
1. Next to **Iteration**, select **Add to iteration**.
1. From the dropdown list, select the iteration to be associated with the task.