Forum Discussion

FlowViz's avatar
FlowViz
Helper III
4 years ago
Solved

Dynamic data source (Jira) refresh

Hi there,

 

I am trying to configure a report to automatically refresh that use Jira as it's source and getting the following message:

 

 

 

 

The report I have created requires parameters of the Jira URL and Project Key:

 

 

I have tried reading about RelativePath but struggling for what the solution is....can anyone advise?

  • The solution was:

     

    = Json.Document(Web.Contents(#"Jira URL",[RelativePath = "/rest/api/2/search?jql=project%20%3D%20" & #"Project Key" & "%20AND%20resolved%20%3E%3D%20-52w%20AND%20issuetype%20not%20in%20(Epic)%20order%20by%20created%20DESC"]))

5 Replies

  • nitishsh91's avatar
    nitishsh91
    Solution Supplier

    Hi FlowViz 

     

    Try below it should work:

     

    let
    Source = Json.Document(Web.Contents("API URL", [Headers=[#"Authorization"="Token <<TOKEN>>"]])),
    ....
    ....

  • Sorry I'm not sure what that should be given the names of my parameters and the text given what I currently have:

    = Json.Document (Web.Contents(#"Jira URL" & "/rest/api/2/search?jql=project%20%3D%20" & #"Project Key" & "%20AND%20resolved%20%3E%3D%20-52w%20AND%20issuetype%20not%20in%20(Epic)%20order%20by%20created%20DESC"))

     

    Could you elaborate?

  • Can you provide an answer that considers my parameters and their names? Otherwise this isn't a helpful response 😞

  • The solution was:

     

    = Json.Document(Web.Contents(#"Jira URL",[RelativePath = "/rest/api/2/search?jql=project%20%3D%20" & #"Project Key" & "%20AND%20resolved%20%3E%3D%20-52w%20AND%20issuetype%20not%20in%20(Epic)%20order%20by%20created%20DESC"]))