Hi experts,
These days in my company I met an issue.
Background,
We use pocket query to link Rest API in JIRA. We setup basic REST to complete the link.
At beginning, I found the link was failed (It worked prefect before) I don't know the reason, then I search in internet and found I can also use API token to access, then I generated a API token key and put it in the password.
After that, I tried to link /rest/api/2/search for testing, it works again.
But I found another issue, when I tried to use a JQL link to grab the information, it failed!
For example:
/rest/api/2/search?jql=project=10001
Then I got error message
Cannot connect to this datasource. Please check the log files for more details or contact your administrator.
Type: ConnectionException
Message: Status code was not 2xx but 400
Anyone know what should I do? Is there anything related with permission?
Hope you can help me to fix it, thanks again.
Hi @Willian Zhou ,
You are getting 404 (page not found) because you are trying to connect to an endpoint that does not exist.
In the second screenshot, the Test URL you have configured is:
While what you wanted configure in there was:
Most likely this is just a copy-paste issue.
Please fix the Test URL field to be /rest/api/2/search?jql=project=10001 . Make sure you use email address and API Token to authenticate and confirm this solves the issue.
Have a nice weekend.
Cheers,
Dario
Thanks, I may attached the wrong picture. I was getting 400 error message. Now it is fixed, we tuned some permission but can't recall where. Anyway, it's good that issue fixed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.