src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js
function (oIssue) {
			var element = sap.ui.getCore().byId(oIssue.context.id),
				className = "";

			if (oIssue.context.id === "WEBPAGE") {
				className = "sap.ui.core";
			} else if (element) {
				className = element.getMetadata().getName();
			}

			return {
				severity: oIssue.severity,
				name: oIssue.rule.title,
				description: oIssue.rule.description,
				resolution: oIssue.rule.resolution,
				resolutionUrls: oIssue.rule.resolutionurls,
				audiences: oIssue.rule.audiences,
				categories: oIssue.rule.categories,
				details: oIssue.details,
				ruleLibName: oIssue.rule.libName,
				ruleId: oIssue.rule.id,
				async: oIssue.rule.async === true, // Ensure async is either true or false
				minVersion: oIssue.rule.minversion,
				context: {
					className: className,
					id: oIssue.context.id
				}
			};
		}
function (oIssue) {
			var element = sap.ui.getCore().byId(oIssue.context.id),
				className = "";

			if (oIssue.context.id === "WEBPAGE") {
				className = "sap.ui.core";
			} else if (element) {
				className = element.getMetadata().getName();
			}

			return {
				severity: oIssue.severity,
				name: oIssue.rule.title,
				description: oIssue.rule.description,
				resolution: oIssue.rule.resolution,
				resolutionUrls: oIssue.rule.resolutionurls,
				audiences: oIssue.rule.audiences,
				categories: oIssue.rule.categories,
				details: oIssue.details,
				ruleLibName: oIssue.rule.libName,
				ruleId: oIssue.rule.id,
				async: oIssue.rule.async === true, // Ensure async is either true or false
				minVersion: oIssue.rule.minversion,
				context: {
					className: className,
					id: oIssue.context.id
				}
			};
		}
function ( oIssue ) { var element = sap . ui . getCore ( ) . byId ( oIssue . context . id ) , className = "" ; if ( oIssue . context . id === "WEBPAGE" ) { className = "sap.ui.core" ; } else if ( element ) { className = element . getMetadata ( ) . getName ( ) ; } return { severity : oIssue . severity , name : oIssue . rule . title , description : oIssue . rule . description , resolution : oIssue . rule . resolution , resolutionUrls : oIssue . rule . resolutionurls , audiences : oIssue . rule . audiences , categories : oIssue . rule . categories , details : oIssue . details , ruleLibName : oIssue . rule . libName , ruleId : oIssue . rule . id , async : oIssue . rule . async === true , // Ensure async is either true or false minVersion : oIssue . rule . minversion , context : { className : className , id : oIssue . context . id } } ; }
Converts Issue Object to a ViewModel that can be used by the IssueManager.
@param {object} oIssue Issue Object that is to be converted
@returns {object} Converted Issue Object
Converts Issue Object to a ViewModel that can be used by the IssueManager .