Go to the settings of the task you want to add to favorites, then click on the desired favorite.
The selected task will replace the previous one in the favorite.