[IMP] Improve code for contract status in task and issue