{"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/c31c9215e131f8c17e79f8901b48c13ee6aa8e7a/release/notes.py#L130-L166","documentation":"Raised by generate() in release/notes.py when the JIRA query `project=KAFKA and fixVersion={version}` returns an empty list, meaning no issues carry the requested fixVersion. The script (used to produce RELEASE_NOTES.html) treats a version with zero tagged issues as a configuration mistake rather than a valid empty release, so it aborts. It exists to prevent publishing release notes for a version string that does not match anything in JIRA.","triggerScenarios":"Running `python release/notes.py <version>` where <version> does not exactly match a fixVersion configured on any KAFKA JIRA issue. Also triggered by a typo, a missing dot release suffix (e.g. passing `3.7` when issues are tagged `3.7.0`), or a version that has not yet had any issues assigned to it in JIRA. Network/JIRA outage returning an empty result set from the search_issues pagination loop can also surface this, because query() would return [].","commonSituations":"Releasing a new minor line before any issues are tagged with that fixVersion; using the wrong version format (Kafka uses x.y.z, e.g. `3.7.0` not `3.7`); running the script against a fork or test JIRA project that has no KAFKA issues; JIRA being unreachable or the anonymous client being rate-limited so the search returns nothing; copy-pasting a version from a release plan doc that differs from the JIRA fixVersion label.","solutions":["Verify the exact fixVersion label in JIRA at https://issues.apache.org/jira by browsing project KAFKA's released versions, and pass that exact string (e.g. `3.7.0`) to notes.py","Confirm at least one issue is tagged with that fixVersion in JIRA; if the version exists but has no issues yet, assign issues or wait until release content is populated before running the script","Check your network connection and that https://issues.apache.org/jira is reachable, since the JIRA() client is anonymous and an outage or empty paginated response makes query() return []","If you are targeting a version that legitimately has no issues yet, decide whether to skip release-note generation for it or seed it with at least one issue before retrying"],"exampleFix":"// before\n$ python release/notes.py 3.7 > RELEASE_NOTES.html\nDidn't find any issues for version 3.7\n\n// after\n$ python release/notes.py 3.7.0 > RELEASE_NOTES.html","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":["release","jira","release-notes","kafka","configuration"],"analyzedSha":"c31c9215e131f8c17e79f8901b48c13ee6aa8e7a","analyzedAt":"2026-08-03T12:34:05.770Z","schemaVersion":2}