我試圖按照https://help.rallydev.com/apps/2.0rc3/doc/#!/guide/embedding_apps中的說明使用alm-wsapi-read-only API密鑰。我使用拉力賽應用程序構建器創建了一個簡單的缺陷查詢應用程序。當我退出拉力賽時,我嘗試在Chrome瀏覽器中使用以下語法來查看缺陷網格,其中我將apiKey替換爲「鑰匙在這裏」:使用API密鑰嵌入應用程序
file:/// C:/ ProjectWork /RallyGitHub/rally-app-defect-metrics/deploy/App-external.html?apiKey="key here「
當加載此頁面時,要求我提供我的拉力賽登錄憑據,而不是默認爲嵌入在拉力賽中的拉力賽用戶API密鑰。
任何幫助我做錯了什麼?
的應用程序代碼是在這個文件如下:
<!DOCTYPE html>
<html>
<head>
<title>DefectMetrics</title>
<script type="text/javascript" src="https://rally1.rallydev.com/apps/2.0rc3/sdk.js"></script>
<script type="text/javascript">
Rally.onReady(function() {
Ext.define("CustomApp",{extend:"Rally.app.App",componentCls:"app",launch:function(){Rally.data.ModelFactory.getModel({type:"Defect",success:function(model){this.grid=this.add({xtype:"rallygrid",model:model,columnCfgs:["FormattedID","Name","State","Owner"],storeConfig:{filters:[{property:"State",operator:"=",value:"Closed"}]}})},scope:this})}});
Rally.launchApp('CustomApp', {
name:"DefectMetrics",
parentRepos:""
});
});
</script>
</head>
<body>
</body>
</html>