Discover JIRA project context for intelligent defaults and workflow understanding
Discovers JIRA project metadata, workflows, and team patterns to generate intelligent defaults for issue creation.
/plugin marketplace add grandcamel/JIRA-Assistant-Skills/plugin install grandcamel-jira-assistant-skills@grandcamel/JIRA-Assistant-SkillsYou are helping the user discover and configure JIRA project context. This context enables intelligent defaults when creating issues and understanding workflows.
Ask the user which project they want to configure:
"Which JIRA project would you like to discover context for? Please provide the project key (e.g., PROJ, DEV, MYAPP)."
If the user provides multiple projects, handle them one at a time.
Check which JIRA profile to use:
"Which JIRA profile should I use for discovery?"
Options:
JIRA_PROFILE env var or config)Run the discovery script using the installed plugin:
python "${CLAUDE_PLUGIN_ROOT}/skills/jira-ops/scripts/discover_project.py" {PROJECT_KEY} --profile {profile}
Wait for the script to complete and capture the output.
After discovery completes, summarize what was found:
For the user, display:
Example output:
Discovery complete for PROJ!
Discovered:
- 6 issue types: Bug, Story, Task, Epic, Subtask, Improvement
- 8 components: Backend, Frontend, API, Database, CI/CD, Docs, Testing, UX
- 3 active versions: v2.1.0, v2.2.0, v3.0.0-beta
Patterns (last 30 days, 85 issues sampled):
- Top assignees: John Doe (35%), Jane Smith (28%), Bob Wilson (15%)
- Common labels: backend, needs-review, urgent, regression
- Priority distribution: High (45%), Medium (35%), Low (20%)
Defaults generated based on patterns.
Ask the user how they want to store the context:
"How would you like to store this project context?
Shared (Recommended): Save to .claude/jira-project-{PROJECT_KEY}/
Personal only: Save to .claude/settings.local.json
Both: Save to both locations
If they choose personal or both, run:
python "${CLAUDE_PLUGIN_ROOT}/skills/jira-ops/scripts/discover_project.py" {PROJECT_KEY} --personal --profile {profile}
Ask if they want to customize the auto-generated defaults:
"The discovery script generated default values based on your team's patterns. Would you like to customize any defaults?
For example:
If yes, help them edit the defaults.json file in the project context directory:
# Show current defaults
cat .claude/jira-project-{PROJECT_KEY}/defaults.json
Then help them modify the file with their preferred values.
Summarize what was created:
"Project context for {PROJECT_KEY} is now configured!
Created:
.claude/jira-project-{PROJECT_KEY}/SKILL.md - Skill documentation.claude/jira-project-{PROJECT_KEY}/context/metadata.json - Issue types, components, versions.claude/jira-project-{PROJECT_KEY}/context/workflows.json - Status transitions.claude/jira-project-{PROJECT_KEY}/context/patterns.json - Usage patterns.claude/jira-project-{PROJECT_KEY}/defaults.json - Default valuesNext steps:
defaults.json as neededTo refresh the context later, run:
/jira-discover-project
or use the jira-ops skill directly."
"Profile not found" error:
/jira-assistant-setup if needed)JIRA_SITE_URL, JIRA_EMAIL, JIRA_API_TOKEN"Project not found" error:
Empty patterns:
--days 60 or --days 90Rate limiting: