Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17878

M Query RESTful webservice as data source

$
0
0

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

 


Viewing all articles
Browse latest Browse all 17878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>