{"record":{"id":"630c96afcedd26d9","repo":"apache/kafka","slug":"didn-t-find-any-issues-for-version-version","errorCode":null,"errorMessage":"Didn't find any issues for version {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":"Same source site and condition as error 118: release/notes.py:generate raises when the Jira query `project=KAFKA and fixVersion=<version>` returns no issues. The two catalogue entries differ only in how the placeholder is rendered in the message (the literal {} vs the interpolated name); the underlying failure is identical - no Jira issue carries the given fixVersion.","triggerScenarios":"generate(version) where version is not a fixVersion on any KAFKA Jira issue (wrong name, unplanned release, or Jira auth/query problem).","commonSituations":"Version string mismatch with Jira's fixVersion naming; running the tool before issues are tagged; Jira credentials/connection issue causing an empty result.","solutions":["Match the exact fixVersion string shown in Jira when calling generate(version).","Tag at least one issue with the fixVersion before generating notes.","Verify Jira connectivity/credentials used by release/notes.py.","Search Jira directly (`fixVersion = \"<version>\"`) to confirm the expected issue set before invoking the script."],"exampleFix":"# before\nnotes.generate(\"3.7\")  # Jira fixVersion is \"3.7.0\" -> Exception\n\n# after\nnotes.generate(\"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":["Match the fixVersion string exactly as it appears in Jira.","Tag at least one issue with the fixVersion before generating notes.","Confirm Jira connectivity/credentials if results are unexpectedly empty."],"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-23T08:17:48.524Z"}