Codumentor logo Codumentor

Bug Report Plugin

Lets users file a bug or feedback from the chat header. Each submission is created as a Redmine issue and stored locally so admins can review recent reports.

Not enabled in the shipped default config. Needs a reachable Redmine instance and API key — see Plugins in Production.

Configuration

plugins:
  - module: codumentor.plugins.bug_report
    class: BugReportPlugin
    args:
      backend:
        type: redmine
        url: "https://redmine.example.com"
        api_key: "${REDMINE_API_KEY}"
        project_id: "codumentor"
        tracker_id: 1
        status_id: 1
        parent_issue_id: 37210
        custom_fields:
          - id: 33
            source: user.display_name
          - name: "Reporter Email"
            source: user.email
          - id: 40
            value: "Codumentor"

backend is required. Only type: redmine is supported.

ParameterTypeDefaultDescription
backend.typestrredmineIssue tracker. Only "redmine" is implemented.
backend.urlstrRedmine base URL.
backend.api_keystrRedmine API key. Supports ${ENV_VAR} expansion.
backend.project_idstrRedmine project identifier.
backend.tracker_idint1Tracker used for both bug and feedback issues.
backend.status_idintunsetInitial issue status. Omitted if not set.
backend.parent_issue_idintunsetParent issue (subtask). Omitted if not set.
backend.custom_fieldslist[]Extra Redmine custom fields on every issue.

Each custom_fields entry needs an identifier (id or name) and exactly one of:

source paths:

PathValue
user.idAuthenticated user id, or "anonymous"
user.display_nameDisplay name (empty when anonymous)
user.emailEmail from the form
report.type"bug" or "feedback"
report.summarySummary from the form
conversation.idConversation id, if included

Usage

Users: Header menu → Report a Problem. Choose Bug or Feedback, enter a summary (required, max 200 characters), optional details (max 5000), email (required), and whether to include the conversation id and browser environment (URL, user agent, screen). On success the dialog shows the Redmine issue id and a link.

Admins: The Bug Reports card on the admin page lists the last five submissions and has a Test connection button against Redmine. Requires admin:*.

Notes