JIRA JQL is not working

Tamas4
Kilo Contributor

Hello everyone, 

I have a problem with the query in REST message. I've got an error with status 400: {"errorMessages":["The value '<name of the project>' does not exist for the field 'project'."],"warningMessages":[]}, which indicates that I have an error with the query, but when I try JQL: project = <my project name> in JIRA, it works fine. The endpoint looks the following: https://< my domain name>.atlassian.net/rest/api/3/search?jql=project=<name of the project>. The authentication is basic with the acces token that has been provided by JIRA. The HTTP Request also contains the Accept and Content-Type with value: application/json. Same goes for the Default GET method. Do you guys have any suggestions what could have gone wrong? Thank you for your answer.

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @Tamas ,

the error message is typical for situations where you have not the rights to read the Jira issues you requested. And as you said your query works fine at Jira I assume that there is a problem with the authentication.

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

View solution in original post

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi @Tamas ,

the error message is typical for situations where you have not the rights to read the Jira issues you requested. And as you said your query works fine at Jira I assume that there is a problem with the authentication.

Kind regards
Maik

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

Yes, indeed the problem was with my authentication. Thank you for your help.

Thank you for the feedback and glad to help you!

Mathieu Lepoutr
Mega Guru

Hi Tamas4

 

It's my understanding that there's an issue with your REST message query for JIRA, specifically related to the project field. The error suggests that the project name provided doesn't exist, even though the same project name works fine when used in a JQL query directly in JIRA.

To troubleshoot this:

  • Double-check the project name for any case sensitivity or extra spaces.
  • Verify that the access token used for authentication has the necessary permissions.
  • Ensure the REST API endpoint is correct and includes the right domain name for your JIRA instance.
  • Test with a different project name to see if it's a specific issue with that project.
  • Check that the JIRA project you're trying to access is active and visible.

Its my understanding that Exalate would be perfect for a use-case like this. I have been using it for quite a while and it instantly jumped in my thoughts reading this post. It is an integration solution that works super fast in my opinion. Hope to have helped you and have a great day!