Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DeoYadav
Regular Visitor

Web.Content failed to get contents from (400)

Hi,

I'm getting the below error while refreshing the jira data. apriciate your help.

 

DeoYadav_2-1666791389015.png

 

Thank you

 

 

5 REPLIES 5
DeoYadav
Regular Visitor

Hi,

any ideas on the this DataSource error issue. is there something missing in the below query or more information required?

= Json.Document(Web.Contents("https://myjira.xxx.com/rest/api/2/search?jql=project in ('yyyy')&maxResults=5000"))

 

Thank you,

Deo Yadav

 

Hi @DeoYadav ,

Please review the following links and check if they can give you some insights or solution.

Connecting Jira to Power BI

JIRA to Power BI

We have done it using REST API, lot of work.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions

 

You can check this odata option in this blog -https://www.idalko.com/power-bi-jira/


Queries to JIRA from Power BI

Source = Json.Document(Web.Contents(JIRA_URL & "/rest/api/2/search?jql=" & QUERY))

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yiruan-msft, thanks for your help but I'm having now different error as below in screenshoot. could you please suggest me on this that what's exact reason?

 

DeoYadav_0-1667304342275.png

 

Thank you,

Deo

 

Hi @DeoYadav ,

According to the error message, it seems that you don't have the proper permission to access to the url. Please update the codes as below and check if it can work...

= Json.Document(Web.Contents("https://myjira.xxx.com/rest/api/2/search?jql=project =yyyy and maxResults=5000"))

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yiruan-msft thank you again, this url is working in the browser after excluding the maxresults=5000 parameter from the url but not working in Power BI and it gives the same error. when I'm trying this url including maxresults=5000 parmameter, it's not working, says 

{"errorMessages":["Field 'maxresults' does not exist or you do not have permission to view it."],"errors":{}}  

 Apriciate if any other help!

 

Thank you

Deo 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.