Sorry, this task really should not exist anymore, it has been broken for many many years.
I have removed it.
Rebuilding user actions may be feasible but is very complex especially since plugins such as assign and solved need to be considered.
https://github.com/discourse/discourse/commit/6b62d75c50148c8d7fec044adcf3a3ff099b3501