.agents/commands/comet/share-progress-in-jira.md
Command: cursor share-progress-in-jira
Extract the Jira ticket number from the current Git branch name, generate a diff of all commits since branching from main (excluding generated files), summarize the changes, and add a progress comment to the corresponding Jira ticket.
This workflow will:
atlassianUserInfo
If unavailable, respond with: "This command needs Jira MCP configured. Set MCP config/env, run
make cursor(Cursor) ormake claude(Claude CLI), then retry."
Stop here.
main<username>/OPIK-<ticket-number>-<kebab-short-description> or <username>/issue-<number>-<description> or <username>/NA-<description>OPIK-<number> or issue-<number> from current branch"Branch name doesn't match expected format:
<username>/OPIK-<ticket-number>-<kebab-short-description>or<username>/issue-<number>-<description>or<username>/NA-<description>" Current branch:<actual-branch-name>
OPIK-<number> or issue-<number> from branch name"Jira ticket
OPIK-<number>not found. Please verify the ticket exists and you have access."
Get diff base: Find the commit where current branch diverged from main
Generate diff: Create diff between current branch and main (all commits since branching)
Important: Use git diff main...HEAD (three dots) to compare the tip of current branch with the common ancestor, NOT git diff main..HEAD (two dots) which compares the tip of main to the tip of HEAD and shows all changes on HEAD that are not on main
Exclude files: Filter out generated files like package-lock.json, target/, node_modules/, etc.
Commands to run:
# Get all file changes since branching from main (excludes generated files)
git diff main...HEAD --name-only | grep -v -E "(package-lock\.json|target/|node_modules/|\.git/)"
# Get detailed diff statistics for file analysis
git diff main...HEAD --stat
# Get commit history for implementation context
git log --oneline main...HEAD
# Optional: Get detailed commit messages for better context
git log --pretty=format:"%h - %s (%an, %ar)" main...HEAD
If no changes: Show message and stop:
"No changes found between current branch and main. Branch may be up to date or no commits made yet."
Parse diff files: Analyze all added, modified, and deleted files since branching from main
Parse commit history: Review commit messages to understand implementation context and progress
Extract meaningful context: Identify what was actually implemented, improved, or fixed
Categorize changes: Group by file type and implementation phases based on Opik project structure:
Generate summary: Create meaningful context for stakeholders based on the actual changes made
Summary quality: Focus on what was accomplished, not technical file details
Format summary: Use the standard 2-section format:
**Release Notes:**
[User-facing changes and features - what Product Managers need to know]
• [User-visible feature/improvement 1]
• [User-visible feature/improvement 2]
• [API changes or new endpoints]
• [Configuration or environment changes]
If no user-facing changes: "No user-facing changes were made in this ticket."
**Technical Details:**
[Developer-focused information - technical details for the development team]
• [Implementation detail 1]
• [Technical improvement 2]
• [Configuration/setup change 3]
• [Testing coverage added]
• [Dependencies updated]
The command is successful when:
make cursor (Cursor) or make claude (Claude CLI)username/OPIK-<number>-<description> for Jira ticketsusername/issue-<number>-<description> for GitHub issuesusername/NA-<description> for tasks without ticketsThis command complements the work-on-jira-ticket command by:
atlassianUserInfo before proceedinggit diff main...HEAD) for accurate change detectionEnd Command