title: Issue
description: 'An issue webform template.'
elements: |
  meta_data_details:
    '#title': 'Issue Meta Data'
    '#type': details
    '#open': true
    meta_data_01:
      '#type': webform_flexbox
      title:
        '#type': textfield
        '#title': Title
        '#required': true
      project:
        '#type': select
        '#title': Project
        '#required': true
        '#options':
          'Project I': 'Project I'
          'Project II': 'Project II'
          'Project III': 'Project III'
    meta_data_02:
      '#type': webform_flexbox
      category:
        '#type': select
        '#title': Category
        '#required': true
        '#options':
          'Bug report': 'Bug report'
          Task: Task
          'Feature request': 'Feature request'
          'Support request': 'Support request'
          Plan: Plan
      priority:
        '#type': select
        '#title': Priority
        '#required': true
        '#options':
          4: Critical
          3: Major
          2: Normal
          1: Minor
      status:
        '#type': webform_select_other
        '#title': Status
        '#required': true
        '#options':
          Active: Active
          'Needs work': 'Needs work'
          'Needs review': 'Needs review'
          'Reviewed & tested by the community': 'Reviewed & tested by the community'
          'Patch (to be ported)': 'Patch (to be ported)'
          Fixed: Fixed
          Postponed: Postponed
          'Postponed (maintainer needs more info)': 'Postponed (maintainer needs more info)'
          'Closed (duplicate)': 'Closed (duplicate)'
          'Closed (won''t fix)': 'Closed (won''t fix)'
          'Closed (works as designed)': 'Closed (works as designed)'
          'Closed (cannot reproduce)': 'Closed (cannot reproduce)'
          'Closed (outdated)': 'Closed (outdated)'
      version:
        '#type': webform_autocomplete
        '#title': Version
        '#required': true
        '#autocomplete_existing': true
      component:
        '#type': webform_select_other
        '#title': Component
        '#required': true
        '#options':
          Code: Code
          Documentation: Documentation
          Miscellaneous: Miscellaneous
          'User interface': 'User interface'
      assigned:
        '#type': entity_autocomplete
        '#title': Assigned
        '#target_type': user
        '#selection_handler': 'default:user'
        '#selection_settings':
          include_anonymous: false
    meta_data_03:
      '#type': webform_flexbox
      tags:
        '#type': entity_autocomplete
        '#title': 'Issue Tags'
        '#description': 'Do <strong>NOT</strong> use tags for adding random keywords or duplicating any other fields.  Separate terms with a comma, not a space.'
        '#tags': true
        '#target_type': taxonomy_term
        '#selection_handler': 'default:taxonomy_term'
        '#selection_settings':
          target_bundles:
            tags: tags
          auto_create: 1
          auto_create_bundle: tags
  summary_and_relationships_details:
    '#title': 'Issue Summary'
    '#type': details
    '#open': true
    summary:
      '#type': text_format
      '#title': Summary
      '#description': 'An issue summary is a concise overview of a full issue report. Issue summaries need to be written if the issue has more than a few comments and/or an average developer cannot understand the subject matter after a few minutes of study. These summaries are key sources of information for core developers, patch reviewers and users who need to skim large amounts of issues and information quickly.'
  files_details:
    '#title': Files
    '#type': details
    '#open': true
    files:
      '#type': managed_file
      '#title': Files
      '#multiple': true
