Fixed wrong increment of ref value on tasks and user stories.
Add tasks attachments api views.