Power BI only counts JIRA Time Spent instead of summing

I am currently testing Power BI and connection with JIRA worked perfectly. The template is also fine but I would like to customize it.

One of the customization options is to see the sum of time spent on an issue type. Streangely, the filters in Power BI only let me to count the time spent field instead of summing it.

A little bit of googling revealed that that Power BI only support Count function if there is text in the column / or NULLs instead of numbers. And this can only be fixed by editing the data model.

Problem: I do not see the option to edit the datamodel.

Any idea how to fix this?

3 answers

This widget could not be displayed.

I have exactly the same problem. It is because the JIRA app makes all the fields non-numeric when connecting to PowerBI. I have no idea how to solve this ...

This widget could not be displayed.

Have anybody managed to solve this issue?  It would be VERY helpful!

Ok, thank you for the idea! But still, is it possible to intergate JIRA data in Power BI Cloud well?

This widget could not be displayed.
Matt Watt I'm New Here Jul 09, 2018

If you start with the Power BI JIRA package (https://powerbi.microsoft.com/en-us/blog/explore-your-jira-data-with-power-bi/), you can then create a function to collect worklogs, and add a custom column to invoke the function, pointing to the column containing the JIRA issue ids, which can be used to form the REST request.

The following query can be used for the function (use New Query -> Blank Query, then Advanced Editor in PowerBI), which will send a request for the worklog for a given issue, then split the worklog into all of the record components that are returned:

(issue as text) as table =>
Source = Json.Document(Web.Contents("JIRAURL/rest/api/2/issue/" & issue & "/worklog")),
worklogsII = if hasResults > 0 then Source[worklogs] else null,
#"Converted to Table" = if hasResults > 0 then Table.FromList(worklogsII, Splitter.SplitByNothing(), null, null, ExtraValues.Error) else null,
#"Expanded Column1" = if hasResults > 0 then Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"author", "updateAuthor", "comment", "created", "updated", "started", "timeSpent", "timeSpentSeconds", "id", "issueId"}, {"Column1.author", "Column1.updateAuthor", "Column1.comment", "Column1.created", "Column1.updated", "Column1.started", "Column1.timeSpent", "Column1.timeSpentSeconds", "Column1.id", "Column1.issueId"}) else Table.FromValue("Empty")
#"Expanded Column1"

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

130 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you