The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Querying Jira REST from Power BI Yields 0 results directly, but 8 if saved to file

Barak Bester
September 14, 2020

Direct Access:

I defined an API Token

In Power BI, I used

Source = Json.Document(Web.Contents("<MyJiraServer>/rest/api/2/search?jql=issuetype=Epic",[ApiKeyName=<MyAPIToken>]))

In datasource setting I gave the API Key

The result was a blank table. 

In Direct Access:

I typed <MyJiraServer>/rest/api/2/search?jql=issuetype=Epic in browser.

I copied the result to notepad and saved it

In Power BI I chose to connect to JSON and chose the file I saved

The result was a list of 8 issues

Why does direct access bring blank tables?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Rudy Holtkamp
Community Champion
September 14, 2020

Hi, probably with BI you don't have the correct authentication. In your browser you are already logged in. Try to do the same on the command line with curl.

Use <yourusername>:<yourapitoken> and encode it Base64.

E.g: PHlvdXJ1c2VybmFtZT46PHlvdXJhcGl0b2tlbj4= then use as header

-H "Authorization: Basic PHlvdXJ1c2VybmFtZT46PHlvdXJhcGl0b2tlbj4="
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events