2
私は、ユーザーのストーリーが持つかもしれない添付ファイルへのリンクを引き出す方法を見つけようとしていますが、どうやってその方法を理解することはできませんでした。私が持っているように、私のコラムで唯一得られるのは、ユーザーストーリーに添付ファイルがあるときに "[オブジェクトオブジェクト]"です。添付ファイルへのリンク
添付ファイルをつかんでいるところが多いようですが、誰かが光を放つか正しい方向に向けることができれば、私は確かにそれを感謝します!
<html>
<head>
<title>Table</title>
<meta name="Name" content="App Example: Table" />
<meta name="Version" content="2010.4" />
<meta name="Vendor" content="Rally Software" />
<script type="text/javascript" src="https://rally1.rallydev.com/apps/1.24/sdk.js?loginKey=bignumber"></script>
<script type="text/javascript">
function tableExample() {
var rallyDataSource = new rally.sdk.data.RallyDataSource('12345', '12345', 'True', 'True');
function itemQuery() {
var queryObject = {
key: 'stories',
type: 'HierarchicalRequirement',
fetch: 'FormattedID,Name,ScheduleState,Description,Attachments',
query: '(Name contains "release")'
};
rallyDataSource.findAll(queryObject, populateTable);
}
function populateTable(results) {
var tableDiv = document.getElementById('aDiv');
var config = { columns:
[{key: 'FormattedID', header: 'Formatted ID', width: 100},
{key: 'Name', width: 400},
{key: 'ScheduleState', header: 'Schedule State', width: 200},
{key: 'Description', width: 800},
{key: 'Attachments', header: 'Attachment Link', width: 200}]};
var table = new rally.sdk.ui.Table(config);
table.addRows(results.stories);
table.display(tableDiv);
};
itemQuery();
}
rally.addOnLoad(tableExample);
</script>
</head>
<body>
<div id="aDiv"></div>
</body>
</html>
あなたは素晴らしいです!それは、おかげで、ありがとう。 –
このメソッドは、rally.sdk.util.Context.getServerInfo()。getSlmUrl()が、Rallyサーバー自体のURLを取得するために、よりエレガントでサポートされた方法であることを指摘する必要があります。私が投稿した例 –