I'm having an use-case to query an Jira API from client tools.
For example, if I execute the below requests from the browser where I have logged in to my Jira account, i'm able to see the actual/all data in a JSON response:
1. https://<my-domain.atlassian.net>/rest/api/3/search
2. https://<my-domain.atlassian.net>/rest/api/3/search?jql=project%20%3D%20<KEY>
However, if I try to access the same URL's from Postman, Incognito window, Denodo, I get empty results for the first URL and the below error for the second URL:
{"errorMessages":["The value '<KEY>' does not exist for the field 'project'."],"warningMessages":[]}
Any ideas how to proceed on this?
Thanks!
Welcome to the community @snatarajan
I tested with Postman, and these are the results:
This is for the first url from Postman. Check your Postman "Authentication" window, make sure that you use "Basic auth" where your password is the Jira API key.
For the second url, I was also able to fetch the data:
Make sure that in your query parameters you enter jql for your key and the value the actual JQL query.
Thank you very much @Nikola Perisic. The API token (https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/) did the trick! Once I create a new API token & provide it in the password section, both of the URL's works smooth. Thanks again!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.