Skip to content

Fix Jira Cloud compatibility for search API and user identifiers#393

Merged
hluk merged 2 commits into
mainfrom
jira-cloud-search-api-migration
Mar 16, 2026
Merged

Fix Jira Cloud compatibility for search API and user identifiers#393
hluk merged 2 commits into
mainfrom
jira-cloud-search-api-migration

Conversation

@hluk

@hluk hluk commented Mar 16, 2026

Copy link
Copy Markdown
Member

Jira Cloud has removed the /rest/api/2/search endpoint (HTTP 410). The atlassian-python-api library already supports the replacement /rest/api/3/search/jql endpoint when cloud=True is set.

Additionally, Jira Cloud uses "accountId" instead of "key" for user identification. Update current_user_key and changelog field author extraction to use the correct identifier based on the cloud setting.

To activate, set "jira_cloud: true" in the config file.

JIRA: RHELWF-13538

Assisted-by: Claude Opus 4.6 (Anthropic)

Jira Cloud has removed the /rest/api/2/search endpoint (HTTP 410).
The atlassian-python-api library already supports the replacement
/rest/api/3/search/jql endpoint when cloud=True is set.

Additionally, Jira Cloud uses "accountId" instead of "key" for user
identification. Update current_user_key and changelog field author
extraction to use the correct identifier based on the cloud setting.

To activate, set "jira_cloud: true" in the config file.

JIRA: RHELWF-13538

Assisted-by: Claude Opus 4.6 (Anthropic)
@hluk hluk requested a review from a team as a code owner March 16, 2026 06:18
Covers the branch where myself() returns a dict that lacks both
"key" (Server) and "accountId" (Cloud) fields.

Assisted-by: Claude Opus 4.6 (Anthropic)
@codecov

codecov Bot commented Mar 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (aa251bc) to head (a7c963f).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #393   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           66        66           
  Lines         3105      3130   +25     
  Branches       145       146    +1     
=========================================
+ Hits          3105      3130   +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hluk hluk requested a review from zhanglu1122 March 16, 2026 09:23
@hluk hluk merged commit 883a13f into main Mar 16, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants