File tree Expand file tree Collapse file tree 4 files changed +10
-33
lines changed
Expand file tree Collapse file tree 4 files changed +10
-33
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 11{
22 "name" : " custom-grid-with-deep-export" ,
3- "version" : " 1.3.0 " ,
3+ "version" : " 1.3.1-alpha " ,
44 "scripts" : {
55 "debug" : " grunt debug" ,
66 "debug:watch" : " nodemon --exec grunt debug" ,
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ Ext.define("custom-grid-with-deep-export", {
2828 showControls : true ,
2929 type : 'HierarchicalRequirement' ,
3030 pageSize : 50 ,
31- searchAllProjects : false ,
3231 enableUrlSharing : false
3332 }
3433 } ,
@@ -461,24 +460,11 @@ Ext.define("custom-grid-with-deep-export", {
461460 return typeof ( this . getAppId ( ) ) == 'undefined' ;
462461 } ,
463462
464- isMilestoneScoped : function ( ) {
465- var result = false ;
466-
467- var tbscope = this . getContext ( ) . getTimeboxScope ( ) ;
468- if ( tbscope && tbscope . getType ( ) == 'milestone' ) {
469- result = true ;
470- }
471- return result
472- } ,
473-
474463 searchAllProjects : function ( ) {
475- var searchAllProjects = this . getSetting ( 'searchAllProjects' ) ;
476- return this . isMilestoneScoped ( ) && searchAllProjects ;
464+ return this . ancestorFilterPlugin . getIgnoreProjectScope ( ) ;
477465 } ,
478466
479467 getSettingsFields : function ( ) {
480- return Rally . technicalservices . CustomGridWithDeepExportSettings . getFields ( {
481- showSearchAllProjects : this . isMilestoneScoped ( )
482- } ) ;
468+ return Rally . technicalservices . CustomGridWithDeepExportSettings . getFields ( ) ;
483469 }
484470} ) ;
Original file line number Diff line number Diff line change 2222 'Rally.ui.CheckboxField'
2323 ] ,
2424
25- getFields : function ( config ) {
25+ getFields : function ( ) {
2626
2727 var type_filters = Rally . data . wsapi . Filter . or ( [
2828 { property : 'TypePath' , value : 'HierarchicalRequirement' } ,
2929 { property : 'TypePath' , operator : 'contains' , value : 'PortfolioItem/' }
3030 ] ) ;
3131
3232 return [ {
33- id : 'searchAllProjects' ,
34- name : 'searchAllProjects' ,
35- fieldLabel : 'Scope Across Workspace' ,
36- labelAlign : 'left' ,
37- xtype : 'rallycheckboxfield' ,
38- hidden : ! config . showSearchAllProjects
39- } ,
40- {
4133 name : 'type' ,
4234 xtype : 'rallycombobox' ,
4335 allowBlank : false ,
4436 autoSelect : false ,
4537 shouldRespondToScopeChange : true ,
46- context : config . context ,
4738 initialValue : 'HierarchicalRequirement' ,
4839 storeConfig : {
4940 model : Ext . identityFn ( 'TypeDefinition' ) ,
You can’t perform that action at this time.
0 commit comments