Skip to content

Jira Integration uses removed Jira API to search for Jira Issue to Link #102667

@artem-shorokhov

Description

@artem-shorokhov

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Steps to Reproduce

  1. Configure Jira integration:
  1. Test integration:
  • open any Sentry Issue
  • click on "Jira Issue"
  • switch to the "Link" tab
  • try to search for an existing Jira Issue

Expected Result

Jira Issue is returned in the search results.

Actual Result

Search results are empty.

I assume, this is because Sentry tries to call Jira API that was removed.

Error from the "sentry-web" container log:

10:04:14 [INFO] sentry.integrations.client: integration.http_response (url='https://stape.atlassian.net/rest/api/2/search/' integration='jira' status_string='410' error='410 Client Error: Gone for url: https://stape.atlassian.net/rest/api/2/search/?jql=id%3D%22ABC-123%22' org_id=3 integration_id=3 org_integration_id=3)

When I try to send request manually, error description is more telling:

{"errorMessages":["The requested API has been removed. Please migrate to the /rest/api/3/search/jql API. A full migration guideline is available at https://developer.atlassian.com/changelog/#CHANGE-2046"],"errors":{}}

I found this path in the "sentry" repo: https://github.com/getsentry/sentry/blob/25.10.0/src/sentry/integrations/jira/client.py#L36

Product Area

Settings - Integrations

Link

No response

DSN

No response

Version

25.8.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions