我已經能夠獲得Java API代碼以用於迭代TreeGrid和迭代Burndown/Release Burnup圖表。我們一直試圖讓這個工作在Confluence上,並且有一些問題試圖通過iframes,而IT在一些旁路選項方面存在問題。我們已經能夠通過下面的腳本得到一些相似的結果。事實上,迭代TreeGrid每次都能夠成功運行,但大多數時候標準報告僅顯示拉力賽登錄屏幕。這是不一致的,有時這在Chrome中適用於我,但不適用於Firefox/IE等。如果通過鏈接以及腳本中的內容輸入,我們已將API附加到合流頁面的路徑。標準報告是否有另一種方法可以生成標準報告?通過Confluence傳遞API密鑰用於標準報告的HTML
謝謝! 馬克
enter code here
{HTML}
<script type="text/javascript">
var field = 'apiKey';
var url = window.location.href;
if(
(url.indexOf('?' + field + '=') != -1) ||
(url.indexOf('&' + field + '=') != -1)
){
//alert("**** 001");
} else {
var myURL = document.location;
if(window.location.href.indexOf('?') > 0){
document.location = myURL + "&apiKey=_1OS4fhAQBi101VTZ4PytkQXb9jYEt0qYx79WXJacc";
} else {
document.location = myURL + "?apiKey=_1OS4fhAQBi101VTZ4PytkQXb9jYEt0qYx79WXJacc";
}
}
</script>
<div id="div-iterationburndown"></div>
<script type="text/javascript">
Rally.onReady(function() {
Ext.create("Ext.Container", {
context: {},
items: [{
xtype: "rallystandardreport",
width: 750,
height: 500,
reportConfig: {
report: "IterationBurndown",
iteration: "April",
subchart: "hide",
title: "Iteration Burndown"
},
project: "https://rally1.rallydev.com/slm/webservice/v2.0/project/51186094804",
projectScopeUp: !1,
projectScopeDown: !0
}],
renderTo: Ext.get("div-iterationburndown")
});
Rally.launchApp('CustomApp', {
name: "iterationburndown",
parentRepos: ""
});
});
</script>
<div id="div-releaseburnup"></div>
<script type="text/javascript">
Rally.onReady(function() {
Ext.create("Ext.Container", {
context: {},
items: [{
xtype: "rallystandardreport",
width: 750,
height: 500,
reportConfig: {
report: "ReleaseBurnup",
subchart: "hide",
title: "Release Burnup"
},
project: "https://rally1.rallydev.com/slm/webservice/v2.0/project/51186094804",
projectScopeUp: !1,
projectScopeDown: !0
}],
renderTo: Ext.get("div-releaseburnup")
});
Rally.launchApp('CustomApp', {
name: "releaseburnup",
parentRepos: ""
});
});
</script>
<div id="div-RallyGrid" style="border-width:5px 5px 5px 5px;width:300px;height:150px;"></div>
<script type="text/javascript">
Rally.onReady(function() {
Ext.create("Rally.data.wsapi.TreeStoreBuilder").build({
models: ["userstory"],
autoLoad: !0,
context: {
workspace: "https://rally1.rallydev.com/slm/webservice/v2.0/workspace/50876644101",
project: "https://rally1.rallydev.com/slm/webservice/v2.0/project/50891172431"
},
enableHierarchy: !0,
filters: [{
property: "Iteration.Name",
operator: "=",
value: "April"
}, {
property: "Project.Name",
operator: "=",
value: "Harrier"
}]
}).then({
success: function(store) {
Ext.create("Ext.Container", {
width: 1e3,
height: 1e3,
border: 5,
items: [{
xtype: "rallytreegrid",
columnCfgs: ["DisplayColor", "Name", "ScheduleState", "Blocked", "TaskEstimateTotal", "TaskRemainingTotal", "Owner", "Notes"],
store: store
}],
renderTo: Ext.get("div-RallyGrid")
})
}
});
Rally.launchApp('CustomApp', {
name: "RallyGrid",
parentRepos: ""
});
});
</script>
{html}
謝謝!是否存在對此的AppsSDK2補充,我錯過了或應該利用而不是StandardReport組件?我真的想讓這種類型的報告的Confluence視圖起作用。謝謝! Mark – markrosen
沒有相應的AppSDK2。我不喜歡將您推薦爲不推薦使用的功能,但在使用帶有LoginKey的AppSDK1時,嵌入StandardReport時不會提示您登錄。他們所有人一起工作的原因是他們都早於AppSDK2和ApiKey。 https://help.rallydev.com/loginkey另請參閱:https://rallycommunity.rallydev.com/answers?id=kA1a0000000Yalc – nickm