Start Work
Assign a Jira issue to yourself and convert it into an OpenSpec proposal. Hands off to the OPSX workflow once the proposal exists.
When to use
- The user wants to start work on a specific Jira issue they've named.
- The user wants to pick up the next available issue from the board ("start work", "next ticket").
- The user is beginning a new unit of work and needs both the Jira and OpenSpec side set up.
Examples:
- "start work" — takes the topmost issue from the board after confirming.
- "start work PROJ-123" — uses the specified issue.
Steps
If no issue-key is provided, fetch the topmost issue from the board:
- Detect project key by running
af jira projects --json- If single project: use it
- If multiple projects: ask the user to choose
- Fetch the topmost backlog issue using:
af jira search "project = <PROJECT> AND status = 'Selected for Development' ORDER BY Rank ASC" --limit 1 --json - Display the issue summary and ask the user for confirmation before proceeding
- If no backlog issues found: inform the user the Selected for Development column is empty and stop
- Detect project key by running
Fetch the issue details using
af jira get <issue-key>.Assign the issue to yourself using
af jira assign <issue-key> --to "$ATLASSIAN_EMAIL".afauthenticates as the account inATLASSIAN_EMAIL(legacy:JIRA_EMAIL), so that is "yourself" — do not derive an assignee from the issue's reporter field.Transition the issue to "In Progress" using
af jira transition <issue-key> --to "In Progress". If this fails, runaf jira transitions <issue-key>to find the correct status name.Create an OpenSpec change using the OPSX workflow:
- Derive a
change-idfrom the issue key and summary (kebab-case, verb-led) - Invoke the
openspec-new-changeskill (Skill tool) with thechange-id- This scaffolds the change directory, shows artifact status, and provides the first artifact template
- Then invoke the
openspec-continue-changeskill (Skill tool) to create the proposal artifact, enriching with Jira context:- Jira issue link:
**Jira**: [ISSUE-KEY](jira-url) - Why section derived from Jira issue description
- What Changes derived from issue details
- Jira issue link:
- Show the updated status
- Derive a
STOP and hand off to OPSX workflow
Suggest: "Proposal created. Run
/opsx:continueto create the next artifact, or/opsx:ffto generate all remaining artifacts."
Project Defaults
If the project instructions specify a default Jira project key (e.g., Jira project: PROJ), use it as the default for --project, list, types, and JQL queries. Explicit user input always overrides the default.
Reference
- See
openspec/AGENTS.mdfor OpenSpec conventions - See the
jiraskill, or run bareaf jira(notaf jira --help, which is only a stub) for the full CLI reference - See
/opsx:newand/opsx:fffor the full artifact workflow