I used to get data from JIRA through API and built reports in Power BI. However I am getting "Expression.Error: Access to the resource is forbidden." error while trying to connect. I have created data source credentials and entered it again but still getting the same issue. Can anyone please help me on this?
Sample code below in the Advanced Editor:
let
Source =Json.Document(Web.Contents("https://enterprise-jira.companyname.net/rest/api/2/search?jql=Project='Project name'&maxResults=1000"))
in
Source
There are any number of reasons why this has started failing.
Some things you may consider checking in the first insantce are:
1. Can the account using the API still access Jira from something like Postman or Insomnia or Curl
2. Do you see failed authentications from this account in the Jira security log
3. Is the JQL returning anything in the UI
4. Can you see anything in Power BI ( I have no knowledge of Power GI at all)
5. Has rate limiting been enabled in Jira
@Graham Twine Thanks for your response. I have checked the API in Postman and found like basic authentication has been disabled on the API instance. So I have changed my authentication to Bearer token and the API call works now in Power BI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Venkatesh Perumal do u mind sharing how do i change the authentication to bearer token?
thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @H Shah Sorry for delay. Here is an example.
Json.Document(Web.Contents("https://<jira url>/rest/api/2/search?jql=Project='Test'&maxResults=10000", [Headers=[Authorization="Bearer <token>"]]))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!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.