add priority to task and add assignments of task