name: Project Requirement
about: Document a project requirement with stakeholders and acceptance criteria
title: "[Requirement] "
labels:
  - requirement
body:
  - type: textarea
    id: overview
    attributes:
      label: Overview
      description: High-level description of the requirement.
    validations:
      required: true

  - type: textarea
    id: stakeholders
    attributes:
      label: Stakeholders
      description: "List stakeholders: product owner, engineers, designers."
      placeholder: |
        - Product owner: @username
        - Engineers: @user1, @user2
        - Designers: @user3

  - type: textarea
    id: goals
    attributes:
      label: Business Goals
      description: What this requirement enables for the business or users.
    validations:
      required: true

  - type: textarea
    id: functional
    attributes:
      label: Functional Requirements
      description: List the functional requirements.
      placeholder: |
        - Req 1: Description
        - Req 2: Description
    validations:
      required: true

  - type: textarea
    id: nonfunctional
    attributes:
      label: Non-Functional Requirements
      description: Performance targets, security/compliance constraints, accessibility.

  - type: textarea
    id: success
    attributes:
      label: Success Criteria
      description: How to measure success.

  - type: textarea
    id: references
    attributes:
      label: Notes & References
      description: Links to documents, mockups, legal requirements, etc.

  - type: checkboxes
    id: checklist
    attributes:
      label: Checklist
      options:
        - label: Stakeholders reviewed
        - label: Acceptance criteria documented
