Skip to content

Endpoint change for searching issues using JQL (GET) #2379

@Zshader

Description

@Zshader

Bug summary

Atlassian recently deprecated its existing API endpoint for JQL (GET) and added a new enhanced endpoint for JQL queries that needs to be updated in the Jira class.

Ref: https://developer.atlassian.com/changelog/#CHANGE-2046
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get

Is there an existing issue for this?

  • I have searched the existing issues

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

No response

jira-python version

main

Python Interpreter version

3.10

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Reproduction steps

# 1. Given a Jira client instance
jira: JIRA
# 2. When I call the function with argument x
jira.issue("x")

Stack trace

{
response text =
"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: {}
}

Expected behaviour

response:{"A Jira issue"}

https://jira.readthedocs.io/examples.html#examples

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions