There are scripts to enable shell completion in TaskWarrior (e.g. for projects and tags). Since I use cygwin with mintty this one was suitable for me.
I added the lines
complete -o nospace -F _task t
complete -o nospace -F _task task
complete -o nospace -F _task ta
at the bottom though to support the shortcuts t
and ta
.