finished method getTaskStatusID(TaskState taskState)