{"record":{"id":"78b3163f47214d51","repo":"apache/kafka","slug":"didn-t-find-any-issues-for-version","errorCode":null,"errorMessage":"Didn't find any issues for version {}","messagePattern":"Didn't find any issues for version (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"release/notes.py","lineNumber":148,"sourceCode":"\ndef issue_str(issue):\n    \"\"\"\n    Provides a human readable string representation for the given issue.\n    \"\"\"\n    key = \"%15s\" % issue.key\n    resolution = \"%15s\" % issue.fields.resolution\n    link = issue_link(issue)\n    return f\"{key} {resolution} {link}\"\n\ndef generate(version):\n    \"\"\"\n    Generates the release notes in HTML format for given version.\n    Raises an error if there are unresolved issues or no issues\n    at all for the specified version.\n    \"\"\"\n    issues = query(f\"project=KAFKA and fixVersion={version}\")\n    if not issues:\n        raise Exception(f\"Didn't find any issues for version {version}\")\n    unresolved_issues = filter_unresolved(issues)\n    if unresolved_issues:\n        issue_list = \"\\n\".join([issue_str(issue) for issue in unresolved_issues])\n        raise Exception(f\"\"\"\nRelease {version} is not complete since there are unresolved or improperly\nresolved issues tagged {version} as the fix version:\n\n{issue_list}\n\nNote that for some resolutions, you should simply remove the fix version\nas they have not been truly fixed in this release.\n        \"\"\")\n    return render(version, issues)\n\n\nif __name__ == \"__main__\":\n    if len(sys.argv) != 2:\n        print(\"Usage: python notes.py <version>\", file=sys.stderr)","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/apache/kafka/blob/996fb4585aa1bcc8980b0e1b8d6b168b986cd979/release/notes.py#L130-L166","documentation":"release/notes.py:generate queries Jira for `project=KAFKA and fixVersion=<version>` and requires at least one matching issue. An empty result means the version string does not match any fixVersion on any KAFKA issue, so release notes cannot be produced. It raises a generic Exception with the version interpolated (the message in the catalogue is the pre-format template).","triggerScenarios":"Calling generate(version) where `version` is not set as a fixVersion on any KAFKA Jira issue - because the version name is wrong, the release has not been planned in Jira yet, or issues were tagged with a different fixVersion string.","commonSituations":"Typos in the version argument (3.7.0 vs 3.7.0.0); running notes generation before release issues are tagged; the version exists in Jira under a different naming convention (e.g. with a leading 'Kafka ').","solutions":["Confirm the exact fixVersion string in Jira (browse a tagged issue's fixVersion field) and pass that string.","Make sure at least one issue has been tagged with this fixVersion before running the script.","If the version is genuinely new, tag the relevant issues first, then re-run.","Check the Jira connection/credentials used by release/notes.py - an auth failure can also return an empty result."],"exampleFix":"# before\n$ python3 release/notes.py 3.7.0.0\nException: Didn't find any issues for version 3.7.0.0\n\n# after\n# verify in Jira that fixVersion is \"3.7.0\" (not 3.7.0.0)\n$ python3 release/notes.py 3.7.0","handlingStrategy":"validation","validationCode":"issues = query(f\"project=KAFKA and fixVersion={version}\")\nif not issues:\n    raise SystemExit(f\"No Jira issues for fixVersion '{version}'. Verify the name in Jira.\")\ngenerate(version)","typeGuard":"null","tryCatchPattern":"try:\n    notes.generate(version)\nexcept Exception as e:\n    print(f\"{e}; confirm fixVersion '{version}' exists in Jira\", file=sys.stderr)\n    raise","preventionTips":["Confirm the exact fixVersion string in Jira before invoking the script.","Tag release issues with the fixVersion first.","Verify Jira credentials/credentials used by release/notes.py."],"tags":["release-tools","jira","release-notes","validation","python","tooling"],"backgroundTag":null,"analyzedSha":"996fb4585aa1bcc8980b0e1b8d6b168b986cd979","analyzedAt":"2026-08-11T22:03:28.655Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}