# New Topic template form, like GitHub Issue templates?

**URL:** <https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452>\
**Category:** Product Support\
**Created:** [May 30, 2022, 3:52pm UTC](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452 "2022-05-30T15:52:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mksafi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mksafi/32/244062_2.png) [@mksafi](https://meta.discourse.org/u/mksafi)\
**Post date:** [May 30, 2022, 3:52pm UTC](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452/1 "2022-05-30T15:52:26Z")

</div>

Discourse currently has the Category Template feature, which prefills the Composer. It’s useful, but a nice step up from that could be to have the ability to create a custom New Topic form, with custom fields, driven by a [YAML definition, like the one exists for GitHub Issues](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms).

So something like this…

```yaml
name: Bug Report
description: File a bug report
title: "[Bug]: "
labels: ["bug", "triage"]
assignees:
  - octocat
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to fill out this bug report!
  - type: input
    id: contact
    attributes:
      label: Contact Details
      description: How can we get in touch with you if we need more info?
      placeholder: ex. email@example.com
    validations:
      required: false
  - type: textarea
    id: what-happened
    attributes:
      label: What happened?
      description: Also tell us, what did you expect to happen?
      placeholder: Tell us what you see!
      value: "A bug happened!"
    validations:
      required: true
  - type: dropdown
    id: version
    attributes:
      label: Version
      description: What version of our software are you running?
      options:
        - 1.0.2 (Default)
        - 1.0.3 (Edge)
    validations:
      required: true
  - type: dropdown
    id: browsers
    attributes:
      label: What browsers are you seeing the problem on?
      multiple: true
      options:
        - Firefox
        - Chrome
        - Safari
        - Microsoft Edge
  - type: textarea
    id: logs
    attributes:
      label: Relevant log output
      description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
      render: shell
  - type: checkboxes
    id: terms
    attributes:
      label: Code of Conduct
      description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com)
      options:
        - label: I agree to follow this project's Code of Conduct
          required: true

```

Translates to something like this…

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/0/a/c0a444d1e3f9c83d7b2db66fdfdcdeab9d273a8d.png)

A much more basic version of this that only supports one field type (i.e. textarea) would still be a very good improvement over the current Category Templates, though!

---

_[View the full topic](https://meta.discourse.org/t/new-topic-template-form-like-github-issue-templates/228452)._
