SD-1289 Backend functionality for assigning task statuses to desk stages