Feature/tasx 6 task view controller

This method doesn't belong in the controller. You have two choices. Either move it to the domain as a method that you can call from the view or if you think you will be using this logic multiple times, create a tag (gsp method) that you can call from the views.