从 Atlassian 页面打开表格如何编写脚本来打开 Atlassian 页面上的表? 我在下面尝试过
dt = 打开(“ https://impinj.atlassian.net/wiki/spaces/UNI/pages/79855941/12+AOI+Disposition-2022 ", html 表(1));
我正在使用 JMP17。

自动化和脚本编写数据存取分享和交流结果回复:从 Atlassian 页面打开表格你好,
我无法测试您的问题,因为您问题中的链接需要密码。
我不熟悉使用OPEN命令直接将网页内容导入为数据表。 您确定这是正确的方法吗? 如果是,则您对该特定页面的访问权限可能存在问题。
如果不是,我建议使用下面描述的手动方法来评估该页面是否可以作为数据表下载。
要从互联网或远程计算机导入数据作为 JMP 中的数据表,您可以:
- 选择文件 > Internet 打开并选择文件
- 单击 JMP 浏览器右上角的导入为数据表图标
- 出现一个窗口,列出在网页中找到的表
- 选择要导入的一个或多个表
- 单击“确定”
让我们知道你发现了什么。
最好的,
TS
回复:从 Atlassian 页面打开表格你好蒂埃里,
我无法使用您的方法打开表格。 网页上有一个表格,但它说找不到。

回复:从 Atlassian 页面打开表格JMP 在收到的 html 中找不到
元素。 也许其中之一:
表观表格的格式不使用 元素
该网站需要登录,JMP 正在查看登录页面
URL 错误且 JMP 看到错误或其他页面
在浏览器中打开该表,然后使用右键->查看源选项查看 html 中是否有 、 和 | 元素。 |
...
表示每行,| ... | 表示每个数据值。
尝试
write(loadtextfile("https://..."))
并检查日志。 研究 html,看看它是否像您的表格、错误消息或登录提示。
我很确定 JMP 看到的是登录页面,而不是带有表格的页面。
如果这是一次性下载, @蒂埃里_S有最佳答案:
Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.Pick the web page option.选择网页选项。Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.Login, go to the page you need, then the high lighted button.登录,转到您需要的页面,然后突出显示的按钮。
如果您需要为多次运行编写脚本......
该网站很可能有一个 API 来帮助您获取数据(可能是 .CSV 文件)。 https://developer.atlassian.com/该 API 还将提供一种方式来提供您使用该网站的凭据。 如果您选择这条路线,JMP 的 httprequest 将会有所帮助。 这是最好的选择。 您可能需要脚本索引中的 NewOAuth2 示例来帮助解决这个问题;它显示了凭证流程的运作方式。 @bryan_boone
或者,类似的东西使用 Python Selenium 编写浏览器脚本将允许您编写 JSL+Python 来导航该站点。 很复杂,如果有可用的 API,这不是最佳选择。
回复:从 Atlassian 页面打开表格Atlassian(Confluence 和 Jira)中的大部分数据都是非表格形式的,并且具有可自定义的字段。 简而言之,它是 JSON,至少从 REST 端点的角度来看是这样。
最简单的开始方法是在 Atlassian 中创建个人访问令牌 (PAT)。 我不久前做了(正如你从屏幕截图中看到的那样),但我仍然不得不四处寻找它;)
https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html

就我而言,我使用 JMP 为我跟踪 Jira(只读)
我使用了 Jira 的 REST api v2
https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#about
要记住的关键是每一个REST 调用将需要 API 令牌,例如:
PAT_TOKEN = "";
JIRA_URL = "https://rndjira.mine/rest/api/2";
JIRA_USER = "";
user = Encode URI( JIRA_USER );
query = "startAt=0&maxResults=500&jql=assignee=" || user;
url = JIRA_URL || "/search?" || query;
request = New HTTPRequest (
Headers({"Authorization: Bearer " || PAT_TOKEN}),
Method( "GET" ),
URL( url )
);
json = request << Send;
json_aa = [=>];
If( request << Is Successful(),
json_aa = Parse JSON( json );
);
json_aa 是解析为 JSL 关联数组的返回 JSON。
您可能想做类似的事情:
write("!\n" || Char(json) || "!\n");
并将输出放入 JSON 编辑器中,以便您可以看到返回的 JSON 数据结构。