cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
UdoMo
Frequent Visitor

Problems connecting to API (Jira)

I'm trying to connect Power BI Desktop to our Jira on premise instance using the following query (found here with some modifications):

 

let 
    BaseUrl = "https://<jira-server-name>/rest/api/2/search?jql=project in ('<Project>')",
    JiraIDPerPage = 1000,
 
    GetJson = (Url) =>
        let 
            RawData = Web.Contents(Url),
            Json = Json.Document(RawData)
        in  Json,
 
    GetJiraIDCount = () =>
        let Url = BaseUrl & "&maxResults=0",
            Json = GetJson(Url),
            Count = Json[#"total"]
        in  Count,
 
    GetPage = (Index) =>
        let Skip = "&startAt=" & Text.From(Index * JiraIDPerPage),
            Top = "&maxResults=" & Text.From(JiraIDPerPage),
            Url = BaseUrl & Skip & Top,
            Json = GetJson(Url),
            Value = Json[#"issues"]
        in  Value,
 
    JiraIDCount = List.Max({ JiraIDPerPage, GetJiraIDCount() }),
    PageCount = Number.RoundUp(JiraIDCount / JiraIDPerPage),
    PageIndices = { 0 .. PageCount - 1 },
    Pages = List.Transform(PageIndices, each GetPage(_)),
    JiraID = List.Union(Pages),
    Table1 = Table.FromList(JiraID, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandRecordColumn(Table1, "Column1", {"id", "key", "fields"}, {"issue.id", "issue.key", "issue.fields"})
in
    #"Expanded Column1"

 

 

This query works fine in Power Query Editor and gets all Tickets from Jira. When I press "Close & Apply" the following Message pops up after several seconds:

UdoMo_0-1611818697502.png

Replacing "Column1" with Table.ColumnNames(Table§){0} in the query results in

UdoMo_1-1611818960315.png

As I'm new to Power Bi I'm stuck. Can someone tell me what I'm doing wrong? 

Thanks in advance!

PS: I'm using Microsoft Power BI Desktop Version: 2.88.1385.0 64-bit (Dezember 2020)

1 ACCEPTED SOLUTION
UdoMo
Frequent Visitor

Solved the problem by using the queries from Burke Data Consulting: http://www.burkedataconsulting.com/accessing-jira-from-power-bi/

Works perfect!

View solution in original post

4 REPLIES 4

Hello @UdoMo 

I’d like to propose and alternative solution for you, you might want to try out our app - Power BI Connector for Jira: https://marketplace.atlassian.com/apps/1221150/power-bi-connector-for-jira?hosting=cloud&tab=overvie... it's available for Jira Cloud / Server / Data Center.

We have a handy User/Admin Guide https://aserve.atlassian.net/wiki/spaces/PBCFJC/overview and fast/responsive support team at support@alpha-serve.com. Please let us know if you need any assistance.

Cheers!

Anton

===
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mdelee
New Member

Does anyone have the template from Burke? That website doesn't work anymore

 

v-rzhou-msft
Community Support
Community Support

Hi @UdoMo 

I am glad that your problem has been solved. Please kindly accept your workaround as a solution. More people will benefit from it.

 

Best Regards,

Rico Zhou

 

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

 

UdoMo
Frequent Visitor

Solved the problem by using the queries from Burke Data Consulting: http://www.burkedataconsulting.com/accessing-jira-from-power-bi/

Works perfect!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors