BountySource: Configurable JIRA integration
Created by: mrts
This is a duplicate of https://gitlab.com/gitlab-org/gitlab-ce/issues/5541 so that I can create a bounty for it at Bountysource.
Description
The current GitLab JIRA integration logs both commit and merge request events as comments in JIRA. This is not optimal as an issue with many related commits creates a lot of comment noise in JIRA.
Merge request event comments are useful separately in JIRA, so configuration is needed to turn them on separately.
Acceptance criteria
In GitLab JIRA integration page under Project settings > Services > JIRA there is a new configuration section with a list of checkboxes which configures which integration features are enabled:
JIRA integration features:
- Publish mentions in commits as comments in issues
- Publish mentions in merge requests as comments in issues
- Enable closing of issues
Also, unit tests and documentation are updated accordingly.
I hope that the feature descriptions are clear enough as a spec, please ask if not.