Process multiple commits in batch with time aggregation and comment deduplication
Processes Git commits in batch to aggregate time logs, deduplicate comments, and update Jira issues efficiently. Use this to handle commit ranges from CI/CD pipelines or manual workflows, converting smart commit commands into optimized Jira updates with error handling and dry-run support.
/plugin marketplace add Lobbi-Docs/claude/plugin install jira-orchestrator@claude-orchestrationsonnetProcess multiple Git commits in batch, extracting smart commit commands, aggregating time logs per issue, deduplicating comments, and executing batch updates to Jira. Designed for efficient processing of commit ranges with graceful error handling.
#time commands with duration parsing (1h, 30m, 2h30m, 1.5h)#comment commands with message content#transition commands for workflow state changescommit_range: "HEAD~5..HEAD" # Git range
dry_run: false # Preview mode
author_filter: null # Optional
since: "2025-12-01" # Optional date
until: "2025-12-19" # Optional date
Phase 1: Extraction - Parse commit messages for issue keys and smart commands Phase 2: Aggregation - Group commands by issue key, sum times, collect comments Phase 3: Validation - Verify issues exist, check transitions, validate time values Phase 4: Execution - Add worklogs, comments, apply transitions Phase 5: Reporting - Generate batch summary with results and errors
Supported formats: 1h, 30m, 2h30m, 1.5h, 90m, 0.5h, 1h 30m
Conversion logic:
Strategy:
| Tool | Purpose | Input | Error Handling |
|---|---|---|---|
| getJiraIssue | Verify issue exists | issueIdOrKey | Skip issue, log error |
| addWorklogToJiraIssue | Add aggregated time | issueIdOrKey, timeSpent | Continue batch, retry with backoff |
| addCommentToJiraIssue | Add deduplicated comments | issueIdOrKey, commentBody | Continue batch |
| transitionJiraIssue | Apply workflow transition | issueIdOrKey, transition.id | Skip transition, continue |
batch_result:
commit_range: "HEAD~5..HEAD"
commits_processed: 5
issues_affected: 2
dry_run: false
execution_time_ms: 3421
results:
PROJ-123:
status: "success"
total_time_logged: "3h 30m"
comments_added: 1
transition: "In Review"
commits: ["abc123", "def456", "ghi789"]
PROJ-456:
status: "success"
total_time_logged: "30m"
comments_added: 1
summary:
total_time_logged: "4h"
total_comments: 2
success_rate: 100
errors: []
Includes failed issues with error types: issue_not_found, transition_failed, api_timeout
Returns preview with would_log_time, would_add_comments, would_transition_to and validation warnings
Validation Errors: issue_not_found, invalid_time, invalid_transition (skip specific operation, continue) Execution Errors: api_timeout, rate_limit, permission_denied, network_error (retry with exponential backoff) Partial Failures: Continue batch processing, include errors in final report
Retry Strategy: Max 3 attempts, exponential backoff (1s-10s delay), skip non-retryable errors
Environment Variables:
BATCH_COMMIT_DRY_RUN: false
BATCH_COMMIT_MAX_COMMITS: 100
BATCH_COMMIT_MAX_TIME_HOURS: 8
BATCH_COMMIT_SIMILARITY_THRESHOLD: 0.8
BATCH_COMMIT_RETRY_ATTEMPTS: 3
Agent Config:
model: sonnet
timeout_seconds: 300
max_iterations: 10
features: [time_aggregation, comment_deduplication, transition_support, dry_run_mode, parallel_validation]
Called By: qa-comment-responder, qa-ticket-reviewer, git hooks, CI/CD pipelines, manual workflow Calls: Git (commit parsing), Jira MCP tools (issue updates), utility functions (time parsing, dedup)
Data Flow: Git commits → Extracted commands → Aggregated data → Validated data → Jira updates → Batch result
Status: Ready for implementation Owner: Jira Orchestration Team Last Reviewed: 2025-12-19
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences