feat: pre-fill custom fields from issue template YAML frontmatter #493
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Allow issue templates to specify default custom field values via YAML frontmatter. When a user creates an issue from a template, the custom fields are automatically pre-populated.
Proposed Syntax
Implementation
custom_fieldsmapcustom_fieldsin the create issue API request bodyFiles to Modify
modules/issue/template/template.go— parsecustom_fieldsfrom frontmatterrouters/web/repo/issue.go—NewIssuePostsaves custom field valuestemplates/repo/issue/new/form.tmpl— render custom field inputs with defaultsrouters/api/v1/repo/issue.go— acceptcustom_fieldsin create issue APIExample Flow
Benefits
Dependencies
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com