Hi Team,
We are facing an issue while using the Python jira
client library after Atlassian removed the legacy /rest/api/2/search
endpoint.
Earlier, our Python code worked fine with API v2:
After migration, Jira Cloud throws this error:
JIRAError: JiraError HTTP 410
The requested API has been removed. Please migrate to the /rest/api/3/search/jql API.
We attempted to update JIRA sdk using pip install --upgrade jira but getting the same above error.
Could you please confirm the correct way for the new JQL search API, and how to fetch all fields equivalent to *all
in v2 using the python JIRA sdk for v3 API?
Hi @Vivek Patel
Welcome to Atlassian Community!
You can use below JQL search API to fetch all fields:
https://your-domain.atlassian.net/rest/api/3/search/jql?jql=project=project_name&fields=*all
For more info, please refer https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get
Thank you,
Ashish
Hi,
I have the same issue as Vivek. Your answer @Ashish Bijlwan does not apply here. While using Python Jira module you have no control over the call to API, you are fully dependent on Jira module.
@Vivek Patel Check your Jira module version. version 3.8 definitely still calls to v2, where it looks like 3.10.x should fix the issue. 3.10 requires python 3.10 so you might need to update your Python setup before you can get the never version of Jira module to work. I'm working on it myself so will let you know if i got any luck.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its 3.10.5 only! @Bartosz Debski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vivek Patel I did upgrade from 3.8 to 3.10.5 and my issue have been solved. I have a Linux setup with Python 3.10.12 and Jira 3.10.5.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have Python 3.12.7 installed too. Not sure what is issue here. :) @Bartosz Debski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I suggest to fully remove jira module and reinstall from scratch. It might be that module, for some reason is not installed properly and your code still loads old one ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Finally working now !
@Bartosz Debski
enhanced_search_issues()?
startAt
, they may not support this new model and will only return the first pageYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.