issue view: move data aggregation code to corresponding blocks