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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Error credentials to connect Power Bi to Jira datacenter

I'm trying to connect to my local Jira from power BI with the web option, putting the base url of Jira, entering the same access credentials that I use when I log in via web, but it always generates the error: "The credential provider are invalid". However if I create a query apart from 0 in the advanced editor putting what I initiate below if it connects, why web I can't?

 

let
BaseUrl = " https://jira-xxxxx.com",
JiraIDPerPage = 100,
GetJson = (Url) =>
let
RawData = Url,
Json = Json.Document(RawData)
in Json,
GetJiraIDCount = () =>
let Url = Web.Contents(BaseUrl, [RelativePath="/rest/api/2/search", Query=[jql = "project in ('PSCO') ",maxResults = "0"]]),
Json = GetJson(Url),
Count = Json[#"total"]
in Count,
GetPage = (Index) =>
let
Url = Web.Contents(BaseUrl, [RelativePath="/rest/api/2/search", Query=[jql = "project in ('PSCO') ",startAt=Text.From(Index * JiraIDPerPage), maxResults = Text.From(JiraIDPerPage)]]),
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),
Table = Table.FromList(JiraID, Splitter.SplitByNothing(), null, null, ExtraValues.Error)
in
Table

 

 

0 REPLIES 0

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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