Implement WorkItemDescriptionTemplates on group namespace
What does this MR do and why?
Resolves #501097 (closed)
Implements the WorkItemDescriptionTemplates field on the namespace type. This field resolves either the names of all of the work item templates, or the name and content of a single template if a name parameter is provided.
Templates are either fetched on the project if it's a Project namespace, or based on the designated group level file template project configured in the Templates setting if it's a Group namespace.
Local Validation:
- Make sure you have a group set up with a template project
- Make sure that this project has at least one template at the correct file path
.gitlab/issue_templates/*.md
-
Once you've done this, you can go into the graphiql explorer and fetch these templates, either from the
Groupnamespace since you set up the template project, or from the project namespace directly using the sample queries below -
You can then checkout
masteragain and run the same queries, you won't see the templates being returned
Example queries:
query {
namespace(fullPath:"twitter") {
workItemDescriptionTemplates(name: "AI Project Proposal") {
nodes {
name
content
}
}
}
}Additionally, you can provide a name parameter to fetch a specific template
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.



