Create an Application Technical Debt Indicator
New article articles in ServiceNow Community
·
Jun 05, 2025
·
article
Enterprise Architecture does not yet have an indicator that consider the counts of non-approved technology technical debts by a given business application. This article provides an example of how you might create your own (until such time as the product includes one out of the box).
Steps:
- In EA Workspace, go to the Configuration section and select Application Indicators.
- Create a new Indicator record.
- Create your indicator with a Minimize direction and select Custom Script for the data source.
- Add the indicator to the Default Application Scoring Profile (or whichever profile you are using)
- Regenerate Indicator scores and verify your results
- If desired, add this new indicator to the Bubble Chart configuration.
Here is an example of a script you might use For educational Purpose only...
// there are no dates to apply here, we are taking a per app snapshot count
var results = {};
var applications = [];
var agr = new GlideRecord('cmdb_ci_business_app');
agr.query();
while(agr.next()){
var tdgr = new GlideRecord('sn_apm_trm_standards_technical_debt');
tdgr.addQuery('business_application', agr.sys_id);
tdgr.query();
var appInfo = {};
appInfo.appId = ''+agr.sys_id;
appInfo.weight = tdgr.getRowCount();
applications.push(appInfo);
}
results.applications = applications;
results;
https://www.servicenow.com/community/enterprise-architure-articles/create-an-application-technical-debt-indicator/ta-p/3282607