WIP Fix/issue in notifications

By now only issue add and issue updated have been replaced. Some more to come. 

With and without my changes, I locally I got 8 errors in the attachment_controller_test.rb.