Work Item Description Template selection via URL parameter
In FE: Work Items - Create/edit flows: Apply template (#428690 - closed) we added description templates for Work Items to the frontend.
In the legacy experience for issues, it's possible to link to the /issues/new page with a url query parameter that automatically selects and assigns a specific description template. More info in the docs here: https://docs.gitlab.com/ee/user/project/issues/create_issues.html#using-a-url-with-prefilled-values
We need to enable the same behaviour when creating a new work item via the /new page.
The legacy experience uses the parameter issuable_template. We should probably support the same parameter name, to prevent breaking changes for users that have bookmarked URLs to quickly create issues with specific templates. However, issuable is a legacy term, and we will refer to the templates as "description templates" most of the time. We should probably also support description_template as a paramter too.
Requirements
- If the
issuable_templateURL search parameter is present, attempt to load and apply the description template it refers to when loading the/newpage for all work item types - Do the same as above for the
description_templateparameter as well.