impr(engine-rest): improve task comment resources implementation

related to #CAM-2134, #CAM-2135 and #CAM-2148