|
3 | 3 | <head> |
4 | 4 | <title>Custom Grid with Deep Export</title> |
5 | 5 | <!-- (c) 2015 Rally Software Development Corp. All Rights Reserved. --> |
6 | | - <!-- Build Date: Thu Apr 13 2017 13:59:10 GMT-0600 (MDT) --> |
| 6 | + <!-- Build Date: Tue May 23 2017 15:16:51 GMT-0600 (MDT) --> |
7 | 7 |
|
8 | 8 | <script type="text/javascript"> |
9 | | - var APP_BUILD_DATE = "Thu Apr 13 2017 13:59:10 GMT-0600 (MDT)"; |
10 | | - var CHECKSUM = 32677813024; |
| 9 | + var APP_BUILD_DATE = "Tue May 23 2017 15:16:51 GMT-0600 (MDT)"; |
| 10 | + var CHECKSUM = 33370645756; |
11 | 11 | </script> |
12 | 12 |
|
13 | 13 | <script type="text/javascript" src="/apps/2.1/sdk.js"></script> |
@@ -267,6 +267,11 @@ Ext.define('Rally.technicalservices.HierarchyExporter',{ |
267 | 267 | var data = []; |
268 | 268 | Ext.Array.each(column_keys, function(key){ |
269 | 269 | var val = obj[key]; |
| 270 | + console.log('column-key', key, obj); |
| 271 | + if (key === "Parent"){ |
| 272 | + val = obj[key] || obj['PortfolioItem']; |
| 273 | + } |
| 274 | + |
270 | 275 | if (val){ |
271 | 276 | if (reHTML.test(val)){ |
272 | 277 | val = val.replace('<br>','\r\n'); |
@@ -359,10 +364,17 @@ Ext.define('Rally.technicalservices.HierarchyExporter',{ |
359 | 364 | var field = c.dataIndex || null; |
360 | 365 | if (field){ |
361 | 366 | var data = recData[field]; |
| 367 | + |
| 368 | + if (field === "Parent"){ |
| 369 | + data = recData[field] || recData["PortfolioItem"]; |
| 370 | + } |
| 371 | + |
362 | 372 | if (Ext.isObject(data)){ |
363 | 373 | if (data._tagsNameArray && data._tagsNameArray.length > 0) { |
364 | 374 | var names = _.pluck(data._tagsNameArray, 'Name'); |
365 | 375 | rec[field] = names.join(','); |
| 376 | + } else if (data.FormattedID){ |
| 377 | + rec[field] = data.FormattedID + ": " + data._refObjectName; |
366 | 378 | } else { |
367 | 379 | rec[field] = data._refObjectName; |
368 | 380 | } |
@@ -748,8 +760,9 @@ Ext.override(Rally.ui.inlinefilter.PropertyFieldComboBox, { |
748 | 760 | * @cfg {String[]} whiteListFields |
749 | 761 | * field names that should be included from the filter row field combobox |
750 | 762 | */ |
751 | | - defaultWhiteListFields: ['Milestones'] |
| 763 | + defaultWhiteListFields: ['Milestones','Tags'] |
752 | 764 | }); |
| 765 | + |
753 | 766 | (function () { |
754 | 767 | var Ext = window.Ext4 || window.Ext; |
755 | 768 |
|
@@ -910,6 +923,10 @@ Ext.define("custom-grid-with-deep-export", { |
910 | 923 | modelNames: this.modelNames, |
911 | 924 | inlineFilterPanelConfig: { |
912 | 925 | quickFilterPanelConfig: { |
| 926 | + whiteListFields: [ |
| 927 | + 'Tags', |
| 928 | + 'Milestones' |
| 929 | + ], |
913 | 930 | defaultFields: [ |
914 | 931 | 'ArtifactSearch', |
915 | 932 | 'Owner', |
@@ -1105,12 +1122,12 @@ Ext.define("custom-grid-with-deep-export", { |
1105 | 1122 | } |
1106 | 1123 | ]; |
1107 | 1124 | }, |
1108 | | - |
| 1125 | + |
1109 | 1126 | _launchInfo: function() { |
1110 | 1127 | if ( this.about_dialog ) { this.about_dialog.destroy(); } |
1111 | 1128 | this.about_dialog = Ext.create('Rally.technicalservices.InfoLink',{}); |
1112 | 1129 | }, |
1113 | | - |
| 1130 | + |
1114 | 1131 | isExternal: function(){ |
1115 | 1132 | return typeof(this.getAppId()) == 'undefined'; |
1116 | 1133 | }, |
|
0 commit comments