dosubot[bot] commented on issue #8709: URL: https://github.com/apache/incubator-devlake/issues/8709#issuecomment-3883344330
<!-- Answer --> You're right—DevLake v1.0.3-beta9 can still use the /api/2 endpoint for Jira Cloud due to a bug in how it detects the deployment type. The code compared the deployment type in a case-sensitive way, so Jira Cloud (which returns "Cloud") was sometimes misidentified as a Server, causing DevLake to use the deprecated /api/2 endpoint instead of /api/3. This was fixed after v1.0.3-beta9 in [PR #8608](https://github.com/apache/incubator-devlake/pull/8608), which made the comparison case-insensitive and ensured Jira Cloud always uses /api/3. To resolve this, upgrade to a version newer than v1.0.3-beta9 that includes this fix. There’s no workaround or config option in v1.0.3-beta9 to force the API version—it’s handled internally by DevLake’s logic. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/5bd62ac7-35e9-40a3-a213-b2200a248253?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/5bd62ac7-35e9-40a3-a213-b2200a248253?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/5bd62ac7-35e9-40a3-a213-b2200a248253?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/5bd62ac7-35e9-40a3-a213-b2200a248253?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/5bd62ac7-35e9-40a3-a213-b2200a248253?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/5bd62ac7-35e9-40a3-a213-b2200a248253?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/5bd62ac7-35e9-40a3-a213-b2200a248253?feedback_type=other)</sup> [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github) [](https://cursor.com/link/prompt?text=You%27re%20right%E2%80%94DevLake%20v1.0.3-beta9%20can%20still%20use%20the%20/api/2%20endpoint%20for%20Jira%20Cloud%20due%20to%20a%20bug%20in%20how%20it%20detects%20the%20deployment%20type.%20The%20code%20compared%20the%20deployment%20type%20in%20a%20case-sensitive%20way%2C%20so%20Jira%20Cloud%20%28which%20returns%20%22Cloud%22%29%20was%20sometimes%20misidentified%20as%20a%20Server%2C%20causing%20DevLake%20to%20use%20the%20deprecated%20/api/2%20endpoint%20instead%20of%20/api/3.%20This%20was%20fixed%20after%20v1.0.3-beta9%20in%20%5BPR%20%238608%5D%28https%3A//github.com/apache/incubator-devlake/pull/8608%29%2C%20which%20made%20the%20comparison%20case-insensitive%20and%20ensured%20Jira%20Cloud%20always%20uses%20/api/3.%0A%0ATo%20resolve%20this%2C%20up grade%20to%20a%20version%20newer%20than%20v1.0.3-beta9%20that%20includes%20this%20fix.%20There%E2%80%99s%20no%20workaround%20or%20config%20option%20in%20v1.0.3-beta9%20to%20force%20the%20API%20version%E2%80%94it%E2%80%99s%20handled%20internally%20by%20DevLake%E2%80%99s%20logic.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8709) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
