Launches phase 1 of the testgen-flow: extracts Jira issue data and Confluence documentation to establish an analysis baseline for test generation.
Ships in core. Installing the plugin adds it to Claude Code.
Extract all relevant data from Jira ticket and related Confluence documentation to establish baseline for analysis.
Extract from user's initial prompt:
Supported formats:
"Analyze requirements for PROJ-123"
"Analyze requirements for PROJ-123 with Confluence: https://confluence.com/display/PROJ/Page"
"Analyze PROJ-123, Confluence pages: URL1, URL2, URL3"
"PROJ-123 + https://confluence.com/display/PROJ/Auth"
Parse Confluence URLs:
https://confluence.company.com/display/SPACE/Page+Titlehttps://confluence.company.com/pages/viewpage.action?pageId=123456https://confluence.company.com/x/AbCdEfIf Confluence URLs provided:
If no Confluence URLs provided:
Create output directory structure:
agents/testgen/{TICKET-KEY}/
└── testgen-state.md (initialize)
Use: Jira and/or Confluence MCPs respectively, snippets below will contain example pseudo-function calls for better understanding mcp_Jira_MCP_jira_get_issue, mcp_Jira_MCP_confluence_get_page, mcp_Jira_MCP_confluence_search, mcp_Jira_MCP_confluence_get_page_children.
Extract ticket key from user input:
Retrieve issue with comprehensive fields:
mcp_Jira_MCP_jira_get_issue(
issue_key="PROJ-123",
fields="summary,description,status,issuetype,assignee,priority,reporter,labels,components,created,updated",
expand="renderedFields",
comment_limit=10
)
Capture:
Decision Point: Did user provide Confluence URLs in initial prompt?
If URLs provided in initial prompt:
mcp_Jira_MCP_confluence_get_page()Tell user:
✅ Using provided Confluence pages:
- [Page 1 Title] (from URL)
- [Page 2 Title] (from URL)
🔍 Checking for child pages...
Use: mcp_Jira_MCP_confluence_search()
Extract search terms from Jira ticket:
Build CQL query:
type=page AND space={PROJECT_KEY} AND (text ~ "{term1}" OR text ~ "{term2}")
Search Confluence:
mcp_Jira_MCP_confluence_search(
query=cql_query,
limit=10
)
Rank results by relevance:
Get top 3-5 pages:
mcp_Jira_MCP_confluence_get_page(
page_id=page_id,
convert_to_markdown=True,
include_metadata=True
)
IMPORTANT: Check for child pages (nested documents often missed by search):
mcp_Jira_MCP_confluence_get_page_children(
parent_id=page_id,
include_content=True,
convert_to_markdown=True,
limit=10
)
For each parent page found:
Example:
Capture:
Fallback: If search returns no results or insufficient results, ask user: "No Confluence pages found automatically. Please provide Confluence page URLs, IDs, or titles (comma-separated), or type 'skip' to proceed with Jira data only."
If user provides URLs at this point:
File: agents/testgen/{TICKET-KEY}/raw-data.md
Format:
# Raw Data - [TICKET-KEY]
**Extracted**: [DateTime]
**Phase**: 1 - Data Collection
**Confluence Source**: [User-provided URLs / Auto-search / User-provided after search / Skipped]
---
## Jira Ticket Data
### Ticket: [KEY]
**URL**: [Jira URL]
**Summary**: [Summary]
**Type**: [Issue Type]
**Status**: [Status]
**Priority**: [Priority]
**Created**: [Date]
**Updated**: [Date]
### Description
[Full description - rendered if HTML, otherwise raw]
### Labels
- [Label1]
- [Label2]
### Components
- [Component1]
- [Component2]
### Assignee
**Name**: [Assignee Name]
**Email**: [If available]
### Reporter
**Name**: [Reporter Name]
**Email**: [If available]
### Comments (Recent)
1. **[Author]** ([Date]): [Comment text]
2. **[Author]** ([Date]): [Comment text]
[...]
### Custom Fields
[List any custom fields found, e.g., Epic Link, Story Points, Sprint, etc.]
---
## Confluence Documentation
### Page 1: [Page Title]
**URL**: [Confluence URL]
**Space**: [Space Key]
**Labels**: [Labels]
**Updated**: [Date]
**Type**: Parent / Child of [Parent Title]
#### Content
[Full page content in markdown]
#### Child Pages (if any)
- [Child 1 Title] - [URL]
- [Child 2 Title] - [URL]
---
### Page 2: [Child Page Title]
**URL**: [Confluence URL]
**Space**: [Space Key]
**Parent Page**: [Parent Title] - [URL]
**Labels**: [Labels]
**Updated**: [Date]
**Type**: Child
#### Content
[Full page content in markdown]
---
[Repeat for each page and child page]
---
## Data Collection Summary
- **Jira Ticket**: [KEY]
- **Jira Fields Extracted**: [Count]
- **Confluence Pages Found**: [Count]
- **Total Content Size**: [Approximate word count]
- **Search Terms Used**: [List]
- **Notes**: [Any issues during extraction]
File: agents/testgen/{TICKET-KEY}/testgen-state.md
Create initial state:
# Test Generation State - [TICKET-KEY]
**Last Updated**: [DateTime]
**Current Phase**: 1 - Data Collection (COMPLETED)
**Jira Ticket**: [TICKET-KEY]
**Confluence Pages**: [Count pages, list URLs]
**Confluence Source**: [User-provided URLs / Auto-search]
## Phase Completion Status
- [x] Phase 1: Data Collection - Completed [DateTime]
- [ ] Phase 2: Gap Analysis - Not Started
- [ ] Phase 3: Question Generation - Not Started
- [ ] Phase 4: Requirements Generation - Not Started
- [ ] Phase 5: Test Scenarios - Not Started
## Metrics
- Jira Fields Extracted: [Count]
- Confluence Pages Analyzed: [Count]
- Total Content Size: [Word count]
- Contradictions Found: 0
- Gaps Identified: 0
- Questions Generated: 0
- User Stories Created: 0
- Test Scenarios: 0
## Phase Details
### Phase 1: Data Collection
- **Completed**: [DateTime]
- **Jira Ticket**: [KEY]
- **Files Created**: raw-data.md, testgen-state.md
- **Confluence Pages**: [Count]
- **Search Terms**: [List]
- **Notes**: [Any relevant notes or issues]
Before completing Phase 1, verify:
agents/testgen/{TICKET-KEY}/ directory existsraw-data.md created with Jira section populatedtestgen-state.md created with Phase 1 marked completemcp_Jira_MCP_jira_get_issue() - Jira ticket extractionmcp_Jira_MCP_confluence_search() - Confluence page searchmcp_Jira_MCP_confluence_get_page() - Confluence page content retrievalmcp_Jira_MCP_confluence_get_page_children() - Confluence child page discoverywrite() - File creationIssue: Jira ticket not found
Solution: Verify ticket key with user, check permissions
Issue: Confluence search returns 0 results
Solution: Ask user for page URLs, or proceed with Jira-only analysis
Issue: Confluence page too large
Solution: Include first 5000 words, note truncation in raw-data.md
Issue: Custom fields not recognized
Solution: Use mcp_Jira_MCP_jira_search_fields() to discover field names
Issue: Confluence search finds parent but misses child pages
Solution: Always check for child pages using confluence_get_page_children() for each found page
Issue: User provided invalid Confluence URL
Solution: Try to parse page ID, if fails ask user for correct URL or page ID
Issue: Confluence URL is from different domain
Solution: Warn user that Jira MCP might not have access, try anyway, fallback to asking for accessible pages
After Phase 1 completion:
What the command file sets; muted values are Claude Code's defaults
test-generation, jira-integration, data-collection, confluence
7-day visitors to each command page
/griddynamics-core-instructions-r2-core:testgen-flow-data-collectionfrom core
Generated from the plugin's indexed repository (griddynamics/rosetta) — no native marketplace selected
npx claudepluginhub p/griddynamics-core-instructions-r2-core43 commands in this plugin
/adhoc-flowWorkflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc./aqa-flowWorkflow for automated QA: integration and end-to-end UI test automation, page objects, etc./aqa-flow-code-analysisPhase 3 Code Analysis of aqa-flow/aqa-flow-data-collectionPhase 1 Data Collection of aqa-flow/aqa-flow-requirements-clarificationPhase 2 Requirements Clarification of aqa-flow/aqa-flow-selector-identificationPhase 4 Selector Identification of aqa-flowOther plugins' commands for the same job