Multiple errors for issue URL generation

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

There are multiple places where we try to generate Issue URL using the helper project_issue_path or project_issue_url. This method will raise an error when a group level issue is passed.

We can easily fix these error by using GitLab's URL builder as in

Gitlab::UrlBuilder.build(issue) # Full URL

Gitlab::UrlBuilder.build(issue, only_path: true) # Path only

We can see a list of Sentry errors that I think might capture most of the occurrences

Edited by 🤖 GitLab Bot 🤖