I am getting Forbidden (403) error while fetching an existing issue details using Postman
URL : https://itas-jira.XX.XX.XX/rest/api/2/issue/777
Basic Authentication with Username and Token
Hi @[deleted] ,
welcome to the Atlassian Community!
According to URL you have server / DC version of Jira, so you need to use password instead of token.
Hi Hana,
I tried both and still getting same 403 forbidden error. Please find more details below.
URL Postman & web Login : https://itas-jira.XXXCompanyXX.polygran.de/rest/api/2/issue/<Issue ID>
Username : Used profile summary username mentioned in cloud login
Password Attempt 1 : Company Login password
Password Attempt 2: Personal access Token
Proxy : Using system
JIRA : v8.20.10
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.
Hi @[deleted] ,
thank you - this is obviously server / DC Jira, but you are mentioning cloud login.
Username : Used profile summary username mentioned in cloud login
Please, what is cloud login for you?
If you are able to log in to this Jira using username and password (using UI), the exact same credentials you will use in Postman for REST API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Hana,
Cloud login I mentioned as the web UI login password which I am using,which is again a organization specific one which I am collectively using for all applications.
Could be an issue with my credentials. But I am able to login to Web UI successfully with same username and password. I tried to change the password but as there are more than 50 failed attempts of login (Probably from my postman hits) it is not allowing me to change the password. How can I reset my password with these many failed login hits from postman!
I just wanted to try again with the new credentials.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted] I believe log out and log in should do the trick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hana,
I tried to logout and relogin still I am getting the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @[deleted] ,
is it possible to contact your Jira admin and ask him to help you with reset of failed login attempts and set a new password?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hana,
Also I was trying to connect using REST API JAVA client to JIRA and I am getting below exception. Can you please help
HttpResponse<JsonNode> response = Unirest.get("https://itas-jira.xxx.polygran.de/rest/api/2/issue/<Num>")
.basicAuth("username", "Token")
.header("Accept", "application/json")
.asJson();
com.mashape.unirest.http.exceptions.UnirestException: java.lang.RuntimeException: java.lang.RuntimeException: org.json.JSONException: A JSONArray text must start with '[' at 1 [character 2 line 1]
at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:143)
at com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted] I think the response is not formatted as JSON. Can you please find out, how does the response look like?
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.