src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js
function(issuesModel) {

				var treeTableModel = {},
					index = 0,
					innerIndex = 0,
					issueCount = 0,
					oSortedSeverityCount,
					iHighSeverityCount = 0,
					iMediumSeverityCount = 0,
					iLowSeverityCount = 0;

				for (var libName in issuesModel) {
					treeTableModel[index] = {
						name: libName,
						showAudiences: false,
						showCategories: false,
						type: "lib"
					};

					for (var rule in issuesModel[libName]) {

						oSortedSeverityCount = this._sortSeverityIssuesByPriority(issuesModel[libName][rule]);
						treeTableModel[index][innerIndex] = {
							formattedName: this._getFormattedName({
								name: issuesModel[libName][rule][0].name,
								highCount: oSortedSeverityCount.high,
								mediumCount: oSortedSeverityCount.medium,
								lowCount: oSortedSeverityCount.low,
								highName: 'H',
								mediumName: 'M',
								lowName: 'L'}),
							name: issuesModel[libName][rule][0].name,
							showAudiences: true,
							showCategories: true,
							categories: issuesModel[libName][rule][0].categories.join(", "),
							audiences: issuesModel[libName][rule][0].audiences.join(", "),
							issueCount: issuesModel[libName][rule].length,
							description: issuesModel[libName][rule][0].description,
							resolution: issuesModel[libName][rule][0].resolution,
							type: "rule",
							ruleLibName: issuesModel[libName][rule][0].ruleLibName,
							ruleId: issuesModel[libName][rule][0].ruleId,
							selected: issuesModel[libName][rule][0].selected,
							details: issuesModel[libName][rule][0].details,
							severity: issuesModel[libName][rule][0].severity
						};


						issueCount += issuesModel[libName][rule].length;
						innerIndex++;
						iHighSeverityCount  += oSortedSeverityCount.high;
						iMediumSeverityCount += oSortedSeverityCount.medium;
						iLowSeverityCount += oSortedSeverityCount.low;
					}


					treeTableModel[index].formattedName = this._getFormattedName({
						name: treeTableModel[index].name,
						highCount: iHighSeverityCount,
						mediumCount: iMediumSeverityCount,
						lowCount: iLowSeverityCount,
						highName: 'High',
						mediumName: 'Medium',
						lowName: 'Low'
					});
					treeTableModel[index].name += " (" + issueCount + " issues)";
					treeTableModel[index].issueCount = issueCount;
					issueCount = 0;
					innerIndex = 0;
					index++;
					iHighSeverityCount = 0;
					iMediumSeverityCount = 0;
					iLowSeverityCount = 0;
				}

				return treeTableModel;
			}
function(issuesModel) {

				var treeTableModel = {},
					index = 0,
					innerIndex = 0,
					issueCount = 0,
					oSortedSeverityCount,
					iHighSeverityCount = 0,
					iMediumSeverityCount = 0,
					iLowSeverityCount = 0;

				for (var libName in issuesModel) {
					treeTableModel[index] = {
						name: libName,
						showAudiences: false,
						showCategories: false,
						type: "lib"
					};

					for (var rule in issuesModel[libName]) {

						oSortedSeverityCount = this._sortSeverityIssuesByPriority(issuesModel[libName][rule]);
						treeTableModel[index][innerIndex] = {
							formattedName: this._getFormattedName({
								name: issuesModel[libName][rule][0].name,
								highCount: oSortedSeverityCount.high,
								mediumCount: oSortedSeverityCount.medium,
								lowCount: oSortedSeverityCount.low,
								highName: 'H',
								mediumName: 'M',
								lowName: 'L'}),
							name: issuesModel[libName][rule][0].name,
							showAudiences: true,
							showCategories: true,
							categories: issuesModel[libName][rule][0].categories.join(", "),
							audiences: issuesModel[libName][rule][0].audiences.join(", "),
							issueCount: issuesModel[libName][rule].length,
							description: issuesModel[libName][rule][0].description,
							resolution: issuesModel[libName][rule][0].resolution,
							type: "rule",
							ruleLibName: issuesModel[libName][rule][0].ruleLibName,
							ruleId: issuesModel[libName][rule][0].ruleId,
							selected: issuesModel[libName][rule][0].selected,
							details: issuesModel[libName][rule][0].details,
							severity: issuesModel[libName][rule][0].severity
						};


						issueCount += issuesModel[libName][rule].length;
						innerIndex++;
						iHighSeverityCount  += oSortedSeverityCount.high;
						iMediumSeverityCount += oSortedSeverityCount.medium;
						iLowSeverityCount += oSortedSeverityCount.low;
					}


					treeTableModel[index].formattedName = this._getFormattedName({
						name: treeTableModel[index].name,
						highCount: iHighSeverityCount,
						mediumCount: iMediumSeverityCount,
						lowCount: iLowSeverityCount,
						highName: 'High',
						mediumName: 'Medium',
						lowName: 'Low'
					});
					treeTableModel[index].name += " (" + issueCount + " issues)";
					treeTableModel[index].issueCount = issueCount;
					issueCount = 0;
					innerIndex = 0;
					index++;
					iHighSeverityCount = 0;
					iMediumSeverityCount = 0;
					iLowSeverityCount = 0;
				}

				return treeTableModel;
			}
function ( issuesModel ) { var treeTableModel = { } , index = 0 , innerIndex = 0 , issueCount = 0 , oSortedSeverityCount , iHighSeverityCount = 0 , iMediumSeverityCount = 0 , iLowSeverityCount = 0 ; for ( var libName in issuesModel ) { treeTableModel [ index ] = { name : libName , showAudiences : false , showCategories : false , type : "lib" } ; for ( var rule in issuesModel [ libName ] ) { oSortedSeverityCount = this . _sortSeverityIssuesByPriority ( issuesModel [ libName ] [ rule ] ) ; treeTableModel [ index ] [ innerIndex ] = { formattedName : this . _getFormattedName ( { name : issuesModel [ libName ] [ rule ] [ 0 ] . name , highCount : oSortedSeverityCount . high , mediumCount : oSortedSeverityCount . medium , lowCount : oSortedSeverityCount . low , highName : 'H' , mediumName : 'M' , lowName : 'L' } ) , name : issuesModel [ libName ] [ rule ] [ 0 ] . name , showAudiences : true , showCategories : true , categories : issuesModel [ libName ] [ rule ] [ 0 ] . categories . join ( ", " ) , audiences : issuesModel [ libName ] [ rule ] [ 0 ] . audiences . join ( ", " ) , issueCount : issuesModel [ libName ] [ rule ] . length , description : issuesModel [ libName ] [ rule ] [ 0 ] . description , resolution : issuesModel [ libName ] [ rule ] [ 0 ] . resolution , type : "rule" , ruleLibName : issuesModel [ libName ] [ rule ] [ 0 ] . ruleLibName , ruleId : issuesModel [ libName ] [ rule ] [ 0 ] . ruleId , selected : issuesModel [ libName ] [ rule ] [ 0 ] . selected , details : issuesModel [ libName ] [ rule ] [ 0 ] . details , severity : issuesModel [ libName ] [ rule ] [ 0 ] . severity } ; issueCount += issuesModel [ libName ] [ rule ] . length ; innerIndex ++ ; iHighSeverityCount += oSortedSeverityCount . high ; iMediumSeverityCount += oSortedSeverityCount . medium ; iLowSeverityCount += oSortedSeverityCount . low ; } treeTableModel [ index ] . formattedName = this . _getFormattedName ( { name : treeTableModel [ index ] . name , highCount : iHighSeverityCount , mediumCount : iMediumSeverityCount , lowCount : iLowSeverityCount , highName : 'High' , mediumName : 'Medium' , lowName : 'Low' } ) ; treeTableModel [ index ] . name += " (" + issueCount + " issues)" ; treeTableModel [ index ] . issueCount = issueCount ; issueCount = 0 ; innerIndex = 0 ; index ++ ; iHighSeverityCount = 0 ; iMediumSeverityCount = 0 ; iLowSeverityCount = 0 ; } return treeTableModel ; }
Gets issues in TreeTable format.
@public
@method
@name sap.ui.support.IssueManager.getIssuesViewModel
@param {object} issuesModel All the issues after they have been grouped with <code>groupIssues</code>
@returns {object} All the issues in TreeTable usable model
Gets issues in TreeTable format .