cops release repos discover queries Jira dev-status artifacts for each in-scope issue and extracts the Bitbucket repositories, Bamboo plan links, and deployment environment links referenced in branch and pull-request activity. Each discovered repo is then validated against Bitbucket.
Usage
Flags
Project key from
cops.project.json. When set, jiraProject and fixVersion defaults are read from the matching project configuration.Jira project key override (e.g.
MYPROJ). Required when not using sprint scope and no project config is present.Jira fixVersion label to scope discovery (e.g.
2026-Q1). Required when using fixVersion scope (not sprint scope).Jira board ID. When provided, the active sprint(s) on this board determine the in-scope issues instead of
--fixVersion.Comma-separated sprint IDs to use as discovery scope (e.g.
101,102). Takes precedence over --board sprint resolution.Sprint states for board-based scope. Comma-separated:
active, future, closed. Defaults to active.Comma-separated issue types to include in scope (e.g.
Story,Defect). Defaults to all types when omitted.Maximum number of in-scope issues to inspect for repo links.
Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
projectKey, repo, issuesLinked, validated, source, bambooPlans, deploymentEnvs, deploymentLinks, issueKeys
| Column | Description |
|---|---|
projectKey | Bitbucket project key for the discovered repo |
repo | Bitbucket repository slug |
issuesLinked | Number of in-scope Jira issues linked to this repo |
validated | true when the repo was confirmed to exist in Bitbucket |
source | How the repo was identified: dev-status (structured API data) or dev-status-url (URL pattern extraction) |
bambooPlans | Bamboo plan keys found in dev-status deployment artifacts |
deploymentEnvs | Deployment environment names/IDs found in dev-status |
deploymentLinks | Total number of deployment event links across in-scope issues |
issueKeys | Jira issue keys linked to this repo |
Scope modes
fixVersion scope
Used when--jiraProject and --fixVersion are provided (and no sprint flags).
Sprint scope
Used when--board or --sprintIds is provided. In this mode --fixVersion is optional and acts as an additional filter.
Exit codes
| Code | Meaning |
|---|---|
0 | Repos discovered and all in-scope issues have repo links |
20 | No repos discovered |
10 | Repos discovered but some in-scope issues are missing dev repo links |
Examples
Related
cops release summary
Run summary with
--discover to aggregate checks across discovered repos.cops release check
Run release gates including Bitbucket and Bamboo checks.
