拉力投资组合应用程序?

发布于 2025-01-04 15:13:35 字数 1789 浏览 1 评论 0原文

我正在寻找 Rally 中操纵最近发布的新 Portfolio 对象的自定义应用程序的示例。在基本层面上,我想使用 Cardboard 组件显示 Portfolio 对象。这可能吗,有没有例子。当前的 SDK 没有引用我可以找到的新 Portfolio 对象。


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Copyright (c) 2010 Rally Software Development Corp. All rights reserved -->
<html>
<head>
   <title>App Example: Card Board Custom Styling</title>
   <meta name="Name" content="App Example: Card Board Custom Styling" />
   <meta name="Vendor" content="ADSK - Rally Software" />
   <script type="text/javascript" src="/apps/1.26/sdk.js"></script>
   <script type="text/javascript">

     function onLoad() {
       var cardboard;

       var rallyDataSource = new rally.sdk.data.RallyDataSource('__WORKSPACE_OID__',
'__PROJECT_OID__',
'__PROJECT_SCOPING_UP__',
'__PROJECT_SCOPING_DOWN__');
       var cardboardConfig = {
         types: ["PortfolioItem", "HierarchicalRequirement"],
         attribute: "InvestmentCategory",
         fetch:"Name,FormattedID,Owner,ObjectID"
       };

       cardboard = new rally.sdk.ui.CardBoard(cardboardConfig, rallyDataSource);
       cardboard.display(dojo.body());
     }
     rally.addOnLoad(onLoad);

   </script>
   <style type="text/css">
     /*Make cards have bold text on a white background*/
     .cardboard .cardContent {
       background-color:#fff;
       font-weight:bold;
     }

     /*Make column headers smaller and green*/
     .cardboard .columnHeader {
       color: #6AB17D;
       font-size:12px;
     }

     /*Hide the owner avatar*/
     .cardboard .cardOwner {
       display:none;
     }
   </style>
</head>
<body>
</body>
</html>

I am looking for examples of custom apps in Rally that manipulate the new Portfolio object recently released. At a basic level I would like to display Portfolio objects using the Cardboard Component. Is that possible, are there any examples out yet. The current SDK doesn't reference the new Portfolio object that I can find.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Copyright (c) 2010 Rally Software Development Corp. All rights reserved -->
<html>
<head>
   <title>App Example: Card Board Custom Styling</title>
   <meta name="Name" content="App Example: Card Board Custom Styling" />
   <meta name="Vendor" content="ADSK - Rally Software" />
   <script type="text/javascript" src="/apps/1.26/sdk.js"></script>
   <script type="text/javascript">

     function onLoad() {
       var cardboard;

       var rallyDataSource = new rally.sdk.data.RallyDataSource('__WORKSPACE_OID__',
'__PROJECT_OID__',
'__PROJECT_SCOPING_UP__',
'__PROJECT_SCOPING_DOWN__');
       var cardboardConfig = {
         types: ["PortfolioItem", "HierarchicalRequirement"],
         attribute: "InvestmentCategory",
         fetch:"Name,FormattedID,Owner,ObjectID"
       };

       cardboard = new rally.sdk.ui.CardBoard(cardboardConfig, rallyDataSource);
       cardboard.display(dojo.body());
     }
     rally.addOnLoad(onLoad);

   </script>
   <style type="text/css">
     /*Make cards have bold text on a white background*/
     .cardboard .cardContent {
       background-color:#fff;
       font-weight:bold;
     }

     /*Make column headers smaller and green*/
     .cardboard .columnHeader {
       color: #6AB17D;
       font-size:12px;
     }

     /*Hide the owner avatar*/
     .cardboard .cardOwner {
       display:none;
     }
   </style>
</head>
<body>
</body>
</html>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

西瓜 2025-01-11 15:13:35

如果您想使用 PortfolioItems 制作纸板,您可以使用此处找到的示例并制作一些细微调整。
首先,您需要更改

types : ["Defect", "HierarchicalRequirement"],

types : ["PortfolioItem"],

您还需要将属性更改为投资组合项目对象上的属性之一。
属性列表可以在此处找到。所有投资组合项目的共同点是投资类别。所以你可以将线路

attribute: "ScheduleState", 

改为

attribute: "InvestmentCategory",

If you want to make a cardboard using PortfolioItems you can take the example found here and make some minor adjustments.
First you will need to change

types : ["Defect", "HierarchicalRequirement"],

to be

types : ["PortfolioItem"],

you will also need to change the attribute to one of the attributes on your portfolio item object.
The list of attributes can be found here. An attribute that is common to all Portfolio Items is InvestmentCategory. So you would change line

attribute: "ScheduleState", 

into

attribute: "InvestmentCategory",
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文