feat: read Jira summary and status for every key in batched searches - #4
Merged
Merged
Conversation
With RELEASE_SCOPE_JIRA_TOKEN (or JIRA_TOKEN) set, collect reads all Jira keys of the report with POST /rest/api/2/search, 100 keys per query, and records their summary, status, status category and type under a top-level jira block. A failed search is kept in the report and makes collect exit 1. The page shows each key with summary and status and counts not-done issues per service. The report schema is now version 2; render rejects version 1 with a clear message.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First step of the Jira phase: summary and status for every Jira key in the report.
What changes
RELEASE_SCOPE_JIRA_TOKEN(orJIRA_TOKEN) enables Jira. WithRELEASE_SCOPE_JIRA_ENDPOINT,collectreads all keys of the report throughPOST /rest/api/2/search, 100 keys per query, Bearer auth (Jira Server/Data Center).jirablock:issuesby key (summary, status, status category, issue type),missingkeys, anderror. It isnullwithout a token.collectexits1. A token without an endpoint exits2.[KEY](url) summary · status; the summary table gains a Jira column counting not-done issues per service; a Jira error shows under the legend.schema_versionis now 2.renderrejects version 1 with "run collect again".Design notes
POSTinstead ofGETkeeps 100 quoted keys out of the URL. Retry coversPOSTfor Jira only: the search is read-only.validateQuery: falselets Jira skip unknown keys (for exampleUTF-8without a project allowlist) instead of failing the batch. Verified on a real Data Center instance.missing.Next
Remote links (related services per key), then the
--jira KEYmode with per-project cache pruning.