Incident business timings show as '0' when they should have valuesIssue A user noted that with many of their incidents, business timings (the Business duration and Business resolve time fields) were showing as '0' when they should have had a value. The user wanted to know what was causing this. Release All Cause The business rule that populates Business duration was customized. The customization excluded the calculation needed to assign the correct values. Resolution 1. Review the two fields the user was concerned with: business_duration (Business duration) and business_stc (Business resolve time). 2. These calculations are typically handled by the base system or default "mark closed" business rule. 3. In this instance, a custom version of the business rule exists, called custom_mark_closed. 4. Check the custom business rule. The base system or default portion that should calculate Business duration is commented out: if (dataChange || current.business_duration.nil())current.business_duration = gs.calDateDiff(opened, closed, false); 5. Note that a custom sched variable is declared with the following logic: var sched = new GlideSchedule(sc);current.business_duration= sched.duration(startDateTime,endDateTime).getDurationValue();} This variable is declared but never called or used anywhere, so there is no opportunity to populate business_duration. 6. To fix the issue going forward, revert the custom business rule to the base system or default version, or update the custom version internally so it calls the logic needed to populate business_duration. This is a fix-forward approach, since it only affects new records going forward. 7. To correct already affected tickets, build a custom script that iterates through the filtered list of incidents and runs them through the logic needed to populate the correct business duration values. Because this script can affect many records, run it through a scheduled job during off-business hours. 8. Writing and testing this script should be owned by the customer and their internal development team, since it involves custom script development and testing against the customer's specific data. 9. Support engineers specialize in resolving base system or default break-fix behavior. Debugging and implementing customizations such as this one falls outside the scope of Support.