Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I am rather new to PBI but hope I can express my problem in a meaningful manner. I want to pull data which comes from a RESTful webservice. Subsequent you can find the details I am using in a RESTful client which returns a proper JSON:
GET / https://myjira.atlassian.net/rest/api/2/search?jql=project="XXX" Header / Authorization:xxxxxxxxxxxxxxxxxxxx
Now I have tried to implement this in PBI query as follows:
let address = "https://myjira.atlassian.net/rest/api/2/search", header = [ #"Authorization" = "xxxxxxxxxxx"], queryOptions = [#"?jql" = "project=XXX"], Source = Json.Document(Web.Contents(address , [Headers = header, Query = queryOptions])), issues = Source[issues] in issues
This returns a table but the "issues" are empty?! I do not get the 23 expected issues within the JIRA project.
Im assumption is that it has something to do with the "jqp" part and the multiple "=" symbols
Eventually the address need to be:
https://myjira.atlassian.net/rest/api/2/search?jql=project="XXX"
Do you have any idea how to fix or better troubleshoot?
BR,
Stefan
I now made some progress. I have compared the Header from the REST client to the Header in PowerBI and added the Cookie Header. Afterwards it worked fine:
let
Source = Json.Document(Web.Contents("https://myjira.atlassian.net/rest/api/2/search?jql=project='BESAD'", [Headers=[Authorization="xxx",Cookie="somecookiestring"]])),
issues = Source[issues],
issues1 = issues{0},
fields = issues1[fields]
in
fields
I have just copied the cookie information from the REST client; but what do I need to use in PowerBI as Cookie information?
BR,
Stefan
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |