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

We should check if the stage exists, same as previous comment.