1
我想建立拉力賽外部應用程序顯示用戶故事卡,它工作正常的時間表狀態作爲屬性,但當我更改爲自定義字段它加載標題和微調圖像來沒有什麼反應,這裏是我的代碼拉力賽自定義字段上的簡單卡板應用
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Copyright (c) 2011 Rally Software Development Corp. All rights reserved -->
<html>
<head>
<title>Component Example: Card Board</title>
<meta name="Name" content="Josh Custom App" />
<meta name="Version" content="2011.2" />
<meta name="Vendor" content="Rally Software" />
<script src="https://rally1.rallydev.com/apps/1.26/sdk.js?loginKey=122222222222222222"></script>
<script type="text/javascript">
function onLoad() {
var rallyDataSource = new rally.sdk.data.RallyDataSource(
'1234',
'5678',
'false',
'false');
var cardboardConfig = {
types: ["HierarchicalRequirement"],
// attribute: 'ScheduleState',
attribute: "c_MathState",
fetch: "Name,FormattedID,Owner,ObjectID"
};
var cardboard = new rally.sdk.ui.CardBoard(cardboardConfig, rallyDataSource);
cardboard.display("cardboard");
}
rally.addOnLoad(onLoad);
</script>
</head>
<body>
<div id="cardboard"></div>
</body>
</html>