When i am using /rest/api/2/project/search to retrieve the list of projects from my Jira site, i am getting empty result even though there are visible projects in site, with basic auth with PAT with a new basic auth setup.
This used to work in past but broken recently. It is working fine with OAuth 3LO setup though.
Is this endpoint now end of life? Are other endpoints for importing issues, sprints and attachments also not going to work now?
/rest/api/3/projects still works using a browser, provides the list of projects in the instance
That endpoint will deprecated in the future and https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get should then be used but this is till working.
How are you using this API endpoint?
We are hitting REST endpoint /rest/api/2/project/search with PAT and basic Auth(username and API token), we are not hitting /rest/api/3/projects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please start using the API V3 endpoint, as I mentioned the V2 option is deprecated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried hitting the REST API v3 on my site https://agile-jira-integration.atlassian.net/rest/api/3/project/search through postman but it gave empty results:
Logs:-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use /rest/api/3/project what does this show?
use rest/api/3/project/search what does this show?
If nothing is shown, asre you having the right permissions on this Jira instance?
As you will need to have:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, empty result still.
Verified the permissions, i am org admin
have the browse permission and role is set to admin for each project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you make other API calls and get results, like getting an issue?
If this is all not working, can you make a new personal token with all scopes, do you get the required infromation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With new API token for basic Auth(without scopes), it is working fine now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please accept my answer if this helped you resolve your issue.
Donanate some kudos if you feel like doing so.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @Anupam Pandey ,
This seems like the case. I also notice recently I could not get full list of objects. This impacts when you have large list of issues. You would need to keep pulling the next set by going through iterations in your script until you get to the very end.
-Ben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In our case, we are not even getting a single project in the result. when testing the API directly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
gotcha. Are you using granular scopes? I 've notice that the scopes are become more broken down. Perhaps something is missing. If you are using classic scopes, then is should have been the same.
You 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.