Bulk Bugs Creation

Creates many bug tickets at once from a single test failure analysis: drafts each bug and creates them in bulk with links back to the source.

Parameters

Configured via customParams in the agent JSON or the project .dmtools/config.js (project values win).

  • batchSize — maximum number of items processed in one batch.

  • failedReasonField — tracker field that stores the failure reason.

  • failedTCsJql — JQL selecting the failed test cases to convert into bugs.

  • feedbackLoop — feedback-loop options (how review comments are collected and reapplied).

  • openBugsJql — JQL selecting the open bugs to include.

  • removeLabel — label removed from the ticket after a successful run (idempotency cleanup).

  • smTriggerLabel — label that marks the ticket as triggered by the SM rule.

  • responseTarget: "tracker" — outputs/response.md is posted to the tracker, so on Jira the output-format prompt is Jira wiki markup (condition isResponseToTracker.js).

Human doc: agents/docs/agents/bulk_bugs_creation.md

Attributes

AttributeValue
JobTeammate
Configbulk_bugs_creation.json
ContextIdbulk_bugs_creation
outputTypenone
skipAIProcessingtrue

Prompt snapshot

Full prompt / instruction set: agents/snapshots/bulk_bugs_creation.md

Actions

preCliJSAction: prepareBulkBugsCreationContext.js

Prepare Bulk Bugs Creation Context (preCliJSAction for bulk_bugs_creation agent)

  • Source: agents/js/prepareBulkBugsCreationContext.js
  • Writes:
    • input/<KEY>/context.md
    • input/<KEY>/failed_tcs.json
    • input/<KEY>/no_failed_tcs.md
    • input/<KEY>/open_bugs.json
  • Parameters (customParams):
    • batchSize
    • failedReasonField
    • failedTCsJql
    • openBugsJql

postJSAction: postBulkBugsCreation.js

Post Bulk Bugs Creation Action (postJSAction for bulk_bugs_creation agent)

  • Source: agents/js/postBulkBugsCreation.js
  • Side effects:
    • post ticket comment (via tracker)
  • Parameters (customParams):
    • failedReasonField
    • feedbackLoop
    • providerTransientBackoffSec
    • removeLabel
    • smTriggerLabel
    • trackerProvider

LLM step

  • outputType: none
  • Prompt snapshot: agents/snapshots/bulk_bugs_creation.md

Custom params

  • responseTarget: "tracker"

  • batchSize: 50

  • openBugsJql: "project = {jiraProject} AND issuetype in (Bug) AND status not in ({status.DONE:Done})"

  • failedTCsJql: "project = {jiraProject} AND issuetype = \"Test Case\" AND {stage.FAILED:Failed} AND (labels is EMPTY OR labels NOT IN (sm_bug_creation_triggered)) ORDER BY created ASC"

  • removeLabel: "sm_bug_creation_triggered"

  • smTriggerLabel: "sm_bulk_bugs_creation_triggered"

  • feedbackLoop:

    {
      "postAction": {
        "enabled": true,
        "maxAttempts": 1
      }
    }
  • failedReasonField (used by JS action)

  • providerTransientBackoffSec (used by JS action)

  • trackerProvider (used by JS action)


Generated by js/agentDocGenerator.js

View the agent config on GitHub →

Generated from bulk_bugs_creation.json in the agents repository and its human doc — edit either and the page follows. Last updated .