Skip to content
Snippets Groups Projects
Verified Commit a38540c5 authored by Jack Chapman's avatar Jack Chapman :one: Committed by GitLab
Browse files

Enable work item description templates

Removes wip feature flag and enables work item
description templates in all work item types

Changelog: added
parent f87b7508
No related branches found
No related tags found
1 merge request!181688Remove wip work_item_description_templates FF
Showing
with 24 additions and 31 deletions
......@@ -216,9 +216,6 @@ export default {
showEditedAt() {
return (this.taskCompletionStatus || this.lastEditedAt) && !this.editMode;
},
canShowDescriptionTemplateSelector() {
return this.glFeatures.workItemDescriptionTemplates;
},
descriptionTemplateContent() {
return this.descriptionTemplate || '';
},
......@@ -452,10 +449,8 @@ export default {
:class="formGroupClass"
:label="__('Description')"
label-for="work-item-description"
:label-sr-only="!canShowDescriptionTemplateSelector"
>
<work-item-description-template-listbox
v-if="canShowDescriptionTemplateSelector"
:full-path="fullPath"
:template="selectedTemplate"
@selectTemplate="handleSelectTemplate"
......@@ -500,7 +495,7 @@ export default {
enable-autocomplete
supports-quick-actions
:autofocus="autofocus"
:class="{ 'gl-mt-3': canShowDescriptionTemplateSelector }"
class="gl-mt-3"
@input="setDescriptionText"
@keydown.meta.enter="updateWorkItem"
@keydown.ctrl.enter="updateWorkItem"
......
......@@ -9,7 +9,6 @@ class Groups::BoardsController < Groups::ApplicationController
push_frontend_feature_flag(:board_multi_select, group)
push_frontend_feature_flag(:issues_list_drawer, group)
push_force_frontend_feature_flag(:work_items_beta, group&.work_items_beta_feature_flag_enabled?)
push_frontend_feature_flag(:work_item_description_templates, group)
end
feature_category :team_planning
......
......@@ -15,7 +15,6 @@ class WorkItemsController < Groups::ApplicationController
push_force_frontend_feature_flag(:glql_integration, group&.glql_integration_feature_flag_enabled?)
push_force_frontend_feature_flag(:continue_indented_text, group&.continue_indented_text_feature_flag_enabled?)
push_frontend_feature_flag(:issues_list_drawer, group)
push_frontend_feature_flag(:work_item_description_templates, group)
end
before_action :handle_new_work_item_path, only: [:show]
......
......@@ -43,7 +43,6 @@ class GroupsController < Groups::ApplicationController
push_frontend_feature_flag(:issues_grid_view)
push_frontend_feature_flag(:issues_list_drawer, group)
push_force_frontend_feature_flag(:namespace_level_work_items, group.namespace_work_items_enabled?)
push_frontend_feature_flag(:work_item_description_templates, group)
end
before_action only: :merge_requests do
......
......@@ -9,7 +9,6 @@ class Projects::BoardsController < Projects::ApplicationController
push_frontend_feature_flag(:board_multi_select, project)
push_frontend_feature_flag(:issues_list_drawer, project)
push_force_frontend_feature_flag(:work_items_beta, project&.work_items_beta_feature_flag_enabled?)
push_frontend_feature_flag(:work_item_description_templates, project&.group)
end
feature_category :team_planning
......
......@@ -11,7 +11,6 @@ class Projects::IncidentsController < Projects::ApplicationController
push_force_frontend_feature_flag(:work_items_beta, @project&.work_items_beta_feature_flag_enabled?)
push_force_frontend_feature_flag(:work_items_alpha, @project&.work_items_alpha_feature_flag_enabled?)
push_frontend_feature_flag(:notifications_todos_buttons, current_user)
push_frontend_feature_flag(:work_item_description_templates, @project&.group)
end
feature_category :incident_management
......
......@@ -53,7 +53,6 @@ class Projects::IssuesController < Projects::ApplicationController
push_force_frontend_feature_flag(:continue_indented_text, project&.continue_indented_text_feature_flag_enabled?)
push_force_frontend_feature_flag(:work_items_beta, project&.work_items_beta_feature_flag_enabled?)
push_force_frontend_feature_flag(:work_items_alpha, project&.work_items_alpha_feature_flag_enabled?)
push_frontend_feature_flag(:work_item_description_templates, project&.group)
end
before_action only: [:index, :show] do
......
......@@ -15,7 +15,6 @@ class Projects::WorkItemsController < Projects::ApplicationController
push_force_frontend_feature_flag(:glql_integration, project&.glql_integration_feature_flag_enabled?)
push_force_frontend_feature_flag(:continue_indented_text, project&.continue_indented_text_feature_flag_enabled?)
push_frontend_feature_flag(:namespace_level_work_items, project&.group)
push_frontend_feature_flag(:work_item_description_templates, project&.group)
end
feature_category :team_planning
......
......@@ -56,7 +56,6 @@ class ProjectsController < Projects::ApplicationController
push_force_frontend_feature_flag(:work_items_alpha, @project&.work_items_alpha_feature_flag_enabled?)
# FF to enable setting to allow webhook execution on 30D and 60D notification delivery too
push_frontend_feature_flag(:extended_expiry_webhook_execution_setting, @project&.namespace)
push_frontend_feature_flag(:work_item_description_templates, @project&.group)
end
layout :determine_layout
......
---
name: work_item_description_templates
feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/512208
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/177856
rollout_issue_url:
milestone: '17.9'
group: group::product planning
type: wip
default_enabled: false
......@@ -12,7 +12,14 @@ title: Description templates
{{< /details >}}
{{< history >}}
- [Work item support](https://gitlab.com/gitlab-org/gitlab/-/issues/512208) introduced in GitLab 17.10.
{{< /history >}}
Description templates standardize and automate how issues and merge requests are created in GitLab.
Description templates:
- Create consistent layouts for issues and merge requests across projects.
......@@ -22,7 +29,14 @@ Description templates:
- Ensure proper tracking of bugs, features, and other work items.
- Format [Service Desk email responses](service_desk/configure.md#use-a-custom-template-for-service-desk-tickets).
You can define templates to use as descriptions for your [issues](issues/_index.md) and [merge requests](merge_requests/_index.md).
You can define templates to use as descriptions
for your:
- [issues](issues/_index.md)
- [epics](../group/epics/epic_work_items.md)
- [tasks](../tasks.md)
- [merge requests](merge_requests/_index.md)
Projects inherit templates from their group and instance.
Templates must be:
......@@ -36,6 +50,12 @@ Templates must be:
Create a new Markdown (`.md`) file inside the `.gitlab/issue_templates/`
directory in your repository.
{{< alert type="note" >}}
Issue templates are supported in all types of Work item including issues, epics, tasks, objectives and key results.
{{< /alert >}}
To create an issue description template:
1. On the left sidebar, select **Search or go to** and find your project.
......@@ -75,7 +95,7 @@ When you create or edit an issue or a merge request, it shows in the **Choose a
To apply a template:
1. Create or edit an issue or a merge request.
1. Create or edit an issue, work item, or a merge request.
1. Select the **Choose a template** dropdown list.
1. If the **Description** text box hasn't been empty, to confirm, select **Apply template**.
1. Select **Save changes**.
......@@ -84,7 +104,7 @@ When you select a description template, its content is copied to the description
To discard any changes to the description you've made after selecting the template: expand the **Choose a template** dropdown list and select **Reset template**.
![Choosing a description template in an issue](img/description_templates_v14_7.png)
![Choosing a description template in an issue](img/description_templates_v17-10.png)
{{< alert type="note" >}}
......
doc/user/project/img/description_templates_v17-10.png

32.6 KiB

......@@ -9,7 +9,6 @@ class Groups::EpicBoardsController < Groups::ApplicationController
before_action do
push_force_frontend_feature_flag(:work_item_epics, group.work_item_epics_enabled?)
push_frontend_feature_flag(:epics_list_drawer, group)
push_frontend_feature_flag(:work_item_description_templates, group)
end
track_event :index, :show, name: 'g_project_management_users_viewing_epic_boards'
......
......@@ -27,7 +27,6 @@ class Groups::EpicsController < Groups::ApplicationController
push_force_frontend_feature_flag(:work_items_alpha, group.work_items_alpha_feature_flag_enabled?)
push_frontend_feature_flag(:epics_list_drawer, @group)
push_frontend_feature_flag(:bulk_update_work_items_mutation, @group)
push_frontend_feature_flag(:work_item_description_templates, @group)
push_frontend_feature_flag(:custom_fields_feature, @group&.root_ancestor)
end
......
......@@ -103,9 +103,6 @@ describe('WorkItemDescription', () => {
},
provide: {
isGroup,
glFeatures: {
workItemDescriptionTemplates: true,
},
},
mocks: {
$route: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment