Hi,
I am trying to fetch all the issues comes under a specific project by projectId. I search a lot but couldn't get any proper answer or what I got, that is not working.
I am hitting this api,
"/rest/api/2/search?jql=project={projectId}&maxResults=1000"
and I am getting this error,
["Error in the JQL Query: Expecting operator before the end of the query. The valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'."]
Do anybody know the answer. That would be so helpful.
Thanks
Though the above link is working from browser but it was not working while try to hit it from Java side with this command
HttpResponse response = getResponseFromUrl(parameters, new GenericUrl(url));
where parameters are the oauth parameters
and Url is the Jira URl.
To get the proper response, need to pass the url like this way,
https://example-dev1.atlassian.net/rest/api/2/search?jql=project+in+(10002)&maxResults=1000
Your query is right, but plz make sure what you are doing here {projectId} , if its paramaterized then make sure you passing the right project id value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the full URL
https://example-dev1.atlassian.net/rest/api/2/search?jql=project=10002&maxResults=1000
which I am calling.
I am getting result for
/rest/api/3/project/search?jql=&maxResults=200
this query but not for the above one. I am getting error for the above one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The project id is good. I can fetch that particular project by that id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That should work.
ex: https://jira.app.*.com/rest/api/2/search?jql=project=ID&maxResults=1000.
Perhaps you don't have the necessary rights to make the call?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am getting response for other URL like,
/rest/api/3/project/search?jql=&maxResults=200
but not for this,
https://example-dev1.atlassian.net/rest/api/2/search?jql=project=10002&maxResults=1000
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.