Trying to get familiar with REST calls and require some assistance. The problem that I am facing is different behavour in two different projects on the same instance when called from two different environments on my local machine.
Looking at the following calls:
When I make the calls in Chrome data is returned, however when I run via VBA in Excel (2010) using the WinHTTP library The calls to FIT succeed while the calls to PLR fail.
I get different errors for the calls in Excel:
When I call for projects the error is "No project could be found with key 'PLR'."
When I call for a single PLR issue the error is "You do not have the permission to see the specified issue.
It feels like the difference is at the project level but I'm at a loss as to where to check.
How are you authenticating the REST calls you run via VBA? Are you using the same credentials you use to log-into the UI?
I am asking this because from the error message this seems to be a permission issue and the account used in VBA has no rights to see project PLR.
Also, can you reproduce the issue by using Curl?
curl -D- -u USERNAME:PASSWORD -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://jira.hk.xxx/rest/api/2/project/PLR/versions curl -D- -u USERNAME:PASSWORD -H "Accept: application/json" -H "Content-Type: application/json" -X GET https://jira.hk.xxx/rest/api/latest/issue/PLR-3933
Atlassian Cloud Support
Thank you for your reply, in my test case I'm not authenticatiing in either case. If I do authenticate it makes no difference to the outcome.
If I make the call to the "FIT" project everything is fine no matter how many times I make the call. Even if I call "PLR" directly after the "FIT" calls they fail. I can immediately go back to "FIT" and the call works.
The calls also both work in in Chrome but not from VBA.
"Atlassian Account" is a space where you can raise questions about your Atlassian Account and your identity across all of our Atlassian Cloud Products. This involves understanding User Managemen...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events