<?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 Re: Open a table from Atlassian page in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/670045#M85803</link>
    <description>&lt;P&gt;Hello Thierry,&lt;/P&gt;&lt;P&gt;I could not open the table using your method. There is a table on the webpage but it says it could not find it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cchueng_0-1692671730861.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55902iC7B09820CF4A061E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cchueng_0-1692671730861.png" alt="cchueng_0-1692671730861.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 02:36:11 GMT</pubDate>
    <dc:creator>cchueng</dc:creator>
    <dc:date>2023-08-22T02:36:11Z</dc:date>
    <item>
      <title>Open a table from Atlassian page</title>
      <link>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/669487#M85761</link>
      <description>&lt;P&gt;How do I write a script to open a table that is on an Atlassian Page ? I tried below&lt;/P&gt;&lt;P&gt;dt = open("&lt;A href="https://impinj.atlassian.net/wiki/spaces/UNI/pages/79855941/12+AOI+Disposition-2022" target="_blank"&gt;https://impinj.atlassian.net/wiki/spaces/UNI/pages/79855941/12+AOI+Disposition-2022&lt;/A&gt;", html table(1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using JMP17.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error msg.PNG" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55860iAF59C1226A9B7FA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error msg.PNG" alt="error msg.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 22:14:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/669487#M85761</guid>
      <dc:creator>cchueng</dc:creator>
      <dc:date>2023-08-18T22:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Open a table from Atlassian page</title>
      <link>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/669780#M85781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I could not test your problem because the link in your question requires a password.&lt;/P&gt;
&lt;P&gt;I am unfamiliar with using the OPEN command to directly import the content of a web page as a data table. Are you sure that it is the right method? If you are, there might be an issue with your access privilege for that specific page.&lt;/P&gt;
&lt;P&gt;If you are not, I suggest using the manual method described below to assess if the page can be downloaded as a data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="WaaZC Zh8Myb"&gt;
&lt;DIV class="rPeykc uP58nb eUu65e PZPZlf" data-attrid="MagiParagraphFeedback" data-hveid="CAEQBA" data-ved="2ahUKEwip-OmNgu2AAxVpnGoFHQtwDK8Qo_EKegQIARAE"&gt;&lt;SPAN&gt;To import data from the internet or a remote computer as a data table in JMP, you can:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="WaaZC Zh8Myb"&gt;
&lt;OL data-hveid="CAEQBQ" data-ved="2ahUKEwip-OmNgu2AAxVpnGoFHQtwDK8QnPYKegQIARAF"&gt;
&lt;LI class="PZPZlf" data-attrid="MagiListItem"&gt;&lt;SPAN&gt;Select File &amp;gt; Internet Open and select the file&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="PZPZlf" data-attrid="MagiListItem"&gt;&lt;SPAN&gt;Click the Import as Data Table icon in the upper right corner of the JMP browser&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="PZPZlf" data-attrid="MagiListItem"&gt;&lt;SPAN&gt;A window appears that lists the tables found in the web page&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="PZPZlf" data-attrid="MagiListItem"&gt;&lt;SPAN&gt;Select the table or tables that you want to import&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="PZPZlf" data-attrid="MagiListItem"&gt;&lt;SPAN class="oXzekf"&gt;Click OK&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN class="oXzekf"&gt;&lt;SPAN class="UV3uM"&gt;Let us know what you find.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="oXzekf"&gt;&lt;SPAN class="UV3uM"&gt;Best,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="oXzekf"&gt;&lt;SPAN class="UV3uM"&gt;TS&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="NPrrbc" data-cid="_tfXiZOnJJem4qtsPi-Cx-Ao_6" data-bt="1"&gt;
&lt;DIV class="BMebGe k0Jjg fCrZyc LwdV0e FR7ZSc OJeuxf VQSoxc" tabindex="0" role="button" aria-label="Expand" data-hveid="CAEQBg" data-ved="2ahUKEwip-OmNgu2AAxVpnGoFHQtwDK8Q3fYKegQIARAG"&gt;
&lt;DIV class="niO4u VDgVie SlP8xc iCQO5d"&gt;
&lt;DIV class="kHtcsd"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="_tfXiZOnJJem4qtsPi-Cx-Ao_6" class="zl1RWe gfHI2e" data-ved="2ahUKEwip-OmNgu2AAxVpnGoFHQtwDK8Q1NMLegQIARAI"&gt;
&lt;DIV id="_tfXiZOnJJem4qtsPi-Cx-Ao_7" class="I6Kpxd XNfAUb"&gt;
&lt;DIV class="RyIFgf" data-scca="" data-hveid="CAEQCQ" data-ved="2ahUKEwip-OmNgu2AAxVpnGoFHQtwDK8Q_sgKegQIARAJ"&gt;
&lt;DIV class="EDblX HG5ZQb" role="list"&gt;
&lt;DIV class="aDFspc fO4k7 XRVJtc x3A3gd CLLuUd KAt2X" role="listitem" data-ved="2ahUKEwip-OmNgu2AAxVpnGoFHQtwDK8QlcIJKAB6BAgBEAo"&gt;
&lt;DIV class="VqeGe"&gt;
&lt;DIV class="UhHTGb W2mGfb ma8r7b" data-hveid="CAEQCw" data-ved="2ahUKEwip-OmNgu2AAxVpnGoFHQtwDK8Q_8gKegQIARAL"&gt;
&lt;DIV class="xo0c9c ma8r7b y1gIl"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Aug 2023 05:32:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/669780#M85781</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-08-21T05:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Open a table from Atlassian page</title>
      <link>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/670045#M85803</link>
      <description>&lt;P&gt;Hello Thierry,&lt;/P&gt;&lt;P&gt;I could not open the table using your method. There is a table on the webpage but it says it could not find it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cchueng_0-1692671730861.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55902iC7B09820CF4A061E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cchueng_0-1692671730861.png" alt="cchueng_0-1692671730861.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 02:36:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/670045#M85803</guid>
      <dc:creator>cchueng</dc:creator>
      <dc:date>2023-08-22T02:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Open a table from Atlassian page</title>
      <link>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/670411#M85837</link>
      <description>&lt;P&gt;JMP could not find &amp;lt;table&amp;gt; elements in the html it received. Maybe one of these:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The apparent table is formatted without using &amp;lt;table&amp;gt; elements&lt;/LI&gt;
&lt;LI&gt;The site requires a login and JMP is seeing the login page&lt;/LI&gt;
&lt;LI&gt;Wrong URL and JMP is seeing an error or other page&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Open the table in a browser and use the right-click-&amp;gt;view source option to see if there are &amp;lt;table&amp;gt;, &amp;lt;tr&amp;gt;, and &amp;lt;td&amp;gt; elements in the html. &amp;lt;tr&amp;gt;...&amp;lt;/tr&amp;gt; for each row and &amp;lt;td&amp;gt;...&amp;lt;/td&amp;gt; for each data value.&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;write(loadtextfile("https://..."))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and check the log. Study the html to see if it looks like your table or an error message or a login prompt.&lt;/P&gt;
&lt;P&gt;I'm pretty sure JMP is seeing the login page, not the page with the table.&lt;/P&gt;
&lt;P&gt;If this is a one time download, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp; has the best answer:&lt;STRIKE&gt;&lt;BR /&gt;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pick the web page option." style="width: 542px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55938i463EBF43DF25B8A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Pick the web page option." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Pick the web page option.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Login, go to the page you need, then the high lighted button." style="width: 805px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55939iFB5CB380F992D82D/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture2.png" alt="Login, go to the page you need, then the high lighted button." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Login, go to the page you need, then the high lighted button.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you need to script this for many runs...&lt;/P&gt;
&lt;P&gt;There is a good chance the site has an API to help you fetch the data, possibly as a .CSV file.&amp;nbsp;&lt;A href="https://developer.atlassian.com/" target="_blank" rel="noopener"&gt;https://developer.atlassian.com/&lt;/A&gt;&amp;nbsp; That API will also have a way to provide your credentials to use the site. JMP's httprequest will help if you go that route. This is the best choice. You may need the NewOAuth2 example from the scripting index to help figure this out; it shows how the credential process might work. &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5036"&gt;@bryan_boone&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, something like &lt;LI-MESSAGE title="Browser Scripting with Python Selenium" uid="485000" url="https://community.jmp.com/t5/Uncharted/Browser-Scripting-with-Python-Selenium/m-p/485000#U485000" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; will let you write JSL+Python to navigate the site. Complicated, this is not the best choice if an API is available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 04:33:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/670411#M85837</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-08-23T04:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Open a table from Atlassian page</title>
      <link>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/670582#M85861</link>
      <description>&lt;P&gt;Much of the data in Atlassian (Confluence and Jira) is non-tabular and has customizable fields. In short, it's JSON, at least from the REST endpoint perspective.&lt;/P&gt;
&lt;P&gt;The easiest way to get started is by creating a Personal Access Token (PAT) in your Atlassian. I did a while back (as you can see from the screen shot) but I still had to hunt around for it ;)&lt;/img&gt;&lt;BR /&gt;&lt;A href="https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html" target="_blank" rel="noopener"&gt;https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bryan_boone_0-1692798084122.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55949i069C294826EF4373/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bryan_boone_0-1692798084122.png" alt="bryan_boone_0-1692798084122.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In my case, I used JMP to track Jira's for me (read only)&lt;/P&gt;
&lt;P&gt;I used Jira's REST api v2&lt;BR /&gt;&lt;A href="https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#about" target="_blank" rel="noopener"&gt;https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#about&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The key thing to remember is that &lt;EM&gt;every&lt;/EM&gt; REST call will need the API token like:&lt;/P&gt;
&lt;PRE&gt;PAT_TOKEN = "";
JIRA_URL = "https://rndjira.mine/rest/api/2";
JIRA_USER = "";
user = Encode URI( JIRA_USER );
query = "startAt=0&amp;amp;maxResults=500&amp;amp;jql=assignee=" || user;
url = JIRA_URL || "/search?" || query;

request = New HTTPRequest (
	Headers({"Authorization: Bearer " || PAT_TOKEN}),
	Method( "GET" ),
	URL( url )
);

json = request &amp;lt;&amp;lt; Send;

json_aa = [=&amp;gt;];
If( request &amp;lt;&amp;lt; Is Successful(),
	json_aa = Parse JSON( json );
);
&lt;/PRE&gt;
&lt;P&gt;json_aa is the returned JSON parsed into a JSL Associative Array.&lt;/P&gt;
&lt;P&gt;You may want to do something like:&lt;/P&gt;
&lt;PRE&gt;write("!\n" || Char(json) || "!\n");&lt;/PRE&gt;
&lt;P&gt;And put the output into a JSON Editor so you can see the returned JSON data structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 14:39:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-a-table-from-Atlassian-page/m-p/670582#M85861</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2023-08-23T14:39:11Z</dc:date>
    </item>
  </channel>
</rss>

