從 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.選擇網頁選項。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 數據結構。