<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic connecting Powerbi and Jira from M in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/connecting-Powerbi-and-Jira-from-M/m-p/1957160#M30513</link>
    <description>&lt;P&gt;Hi, I tried looking ina&amp;nbsp; few topics like :&lt;A href="https://community.powerbi.com/t5/Desktop/Connecting-Jira-to-Power-BI-using-the-Web-API/td-p/838130" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Connecting-Jira-to-Power-BI-using-the-Web-API/td-p/838130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i can not get my code to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have is below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let 
    BaseUrl = "https://autoleadstar.atlassian.net/rest/api/2/issue/createmeta",
    Credentials = "XXXX@email.com:My_token",
    JiraIDPerPage = 1000,
 
    GetJson = (Url) =&amp;gt;
        let 
            RawData = Web.Contents(Url,[Headers=[Authorization="Basic " &amp;amp; Credentials]]),
            Json    = Json.Document(RawData)
        in  Json,
 
    GetJiraIDCount = () =&amp;gt;
        let Url   = BaseUrl &amp;amp; "&amp;amp;maxResults=0",
            Json  = GetJson(Url),
            Count = Json[#"total"]
        in  Count,
 
    GetPage = (Index) =&amp;gt;
        let Skip  = "&amp;amp;startAt=" &amp;amp; Text.From(Index * JiraIDPerPage),
            Top   = "&amp;amp;maxResults=" &amp;amp; Text.From(JiraIDPerPage),
            Url   = BaseUrl &amp;amp; Skip &amp;amp; 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),
    Table       = Table.FromList(JiraID, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandRecordColumn(Table, "Column1", {"id", "key", "fields"}, {"Column1.id", "Column1.key", "Column1.fields"})
in
    Table&lt;/LI-CODE&gt;&lt;P&gt;I get the following error:&amp;nbsp;&lt;BR /&gt;"We couldn't authenticate with the credentials provide. Please try again."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips on how to proceed?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 10:52:55 GMT</pubDate>
    <dc:creator>Laila92</dc:creator>
    <dc:date>2021-07-14T10:52:55Z</dc:date>
    <item>
      <title>connecting Powerbi and Jira from M</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/connecting-Powerbi-and-Jira-from-M/m-p/1957160#M30513</link>
      <description>&lt;P&gt;Hi, I tried looking ina&amp;nbsp; few topics like :&lt;A href="https://community.powerbi.com/t5/Desktop/Connecting-Jira-to-Power-BI-using-the-Web-API/td-p/838130" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Connecting-Jira-to-Power-BI-using-the-Web-API/td-p/838130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i can not get my code to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have is below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let 
    BaseUrl = "https://autoleadstar.atlassian.net/rest/api/2/issue/createmeta",
    Credentials = "XXXX@email.com:My_token",
    JiraIDPerPage = 1000,
 
    GetJson = (Url) =&amp;gt;
        let 
            RawData = Web.Contents(Url,[Headers=[Authorization="Basic " &amp;amp; Credentials]]),
            Json    = Json.Document(RawData)
        in  Json,
 
    GetJiraIDCount = () =&amp;gt;
        let Url   = BaseUrl &amp;amp; "&amp;amp;maxResults=0",
            Json  = GetJson(Url),
            Count = Json[#"total"]
        in  Count,
 
    GetPage = (Index) =&amp;gt;
        let Skip  = "&amp;amp;startAt=" &amp;amp; Text.From(Index * JiraIDPerPage),
            Top   = "&amp;amp;maxResults=" &amp;amp; Text.From(JiraIDPerPage),
            Url   = BaseUrl &amp;amp; Skip &amp;amp; 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),
    Table       = Table.FromList(JiraID, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandRecordColumn(Table, "Column1", {"id", "key", "fields"}, {"Column1.id", "Column1.key", "Column1.fields"})
in
    Table&lt;/LI-CODE&gt;&lt;P&gt;I get the following error:&amp;nbsp;&lt;BR /&gt;"We couldn't authenticate with the credentials provide. Please try again."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips on how to proceed?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 10:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/connecting-Powerbi-and-Jira-from-M/m-p/1957160#M30513</guid>
      <dc:creator>Laila92</dc:creator>
      <dc:date>2021-07-14T10:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: connecting Powerbi and Jira from M</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/connecting-Powerbi-and-Jira-from-M/m-p/1961602#M30556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/195966"&gt;@Laila92&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your code I think you want to use a REST API as a data source.&lt;/P&gt;
&lt;P&gt;Please check whether your access token is correct.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;...
Credentials = "XXXX@email.com:My_token",
...
etJson = (Url) =&amp;gt;
        let 
            RawData = Web.Contents(Url,[Headers=[Authorization="Basic " &amp;amp; Credentials]]),&lt;/LI-CODE&gt;
&lt;P&gt;You can try to use web connector in Power BI to connect to your data source. You can add your authentication and other parameters you need in HTTP request header parameters in Advancd.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 703px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/554658iB1CEAE1F19FB5CE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Power-Query/Using-a-REST-API-as-a-data-source/m-p/50400" target="_self"&gt;Using a REST API as a data source&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rico Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 08:43:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/connecting-Powerbi-and-Jira-from-M/m-p/1961602#M30556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-16T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: connecting Powerbi and Jira from M</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/connecting-Powerbi-and-Jira-from-M/m-p/1968306#M30604</link>
      <description>&lt;P&gt;I was able to connect, but am only getting an empty table back. Any idea why that is?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 11:46:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/connecting-Powerbi-and-Jira-from-M/m-p/1968306#M30604</guid>
      <dc:creator>Laila92</dc:creator>
      <dc:date>2021-07-20T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: connecting Powerbi and Jira from M</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/connecting-Powerbi-and-Jira-from-M/m-p/2549710#M36430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/195966"&gt;@Laila92&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can consider using &lt;A href="https://marketplace.atlassian.com/apps/1221150/power-bi-connector-for-jira?hosting=cloud&amp;amp;tab=overview" target="_self"&gt;Power BI Connector for Jira&lt;/A&gt; as one more way to solve your issue.&lt;/P&gt;&lt;P&gt;Liubov&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 08:53:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/connecting-Powerbi-and-Jira-from-M/m-p/2549710#M36430</guid>
      <dc:creator>ltopchyi</dc:creator>
      <dc:date>2022-05-31T08:53:45Z</dc:date>
    </item>
  </channel>
</rss>

