This is due to the facts that anything in {} is not evaluated properly. So to fix this, don't rely on {} to create lists, but create them deliberately using the list command (and -actions expects a list of lists).
-actions [list \
[list [_ project-manager.Delete_this_task] delete]\
[list [_ project-manager.Cancel] cancel] \
] \