summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-02-29 17:30:41 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-02-29 17:30:41 +0000
commite7364050b03593618da1e6a14784d63d6abc3849 (patch)
tree2281c6c88324870eb2110bb29f4d167b314509e1
parent6f85eb38516ae23969c34eab3d31f85bb5df9177 (diff)
downloadgitlab-ce-e7364050b03593618da1e6a14784d63d6abc3849.tar.gz
Revert "Merge branch 'issue_5854' into 'master' "revert-6f85eb38
This reverts merge request !2992
-rw-r--r--app/models/project_services/jira_service.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/models/project_services/jira_service.rb b/app/models/project_services/jira_service.rb
index 65312ab3556..f6571fc063e 100644
--- a/app/models/project_services/jira_service.rb
+++ b/app/models/project_services/jira_service.rb
@@ -108,8 +108,7 @@ class JiraService < IssueTrackerService
},
entity: {
name: noteable_name.humanize.downcase,
- url: entity_url,
- title: noteable.title
+ url: entity_url
}
}
@@ -197,11 +196,10 @@ class JiraService < IssueTrackerService
user_url = data[:user][:url]
entity_name = data[:entity][:name]
entity_url = data[:entity][:url]
- entity_title = data[:entity][:title]
project_name = data[:project][:name]
message = {
- body: %Q{[#{user_name}|#{user_url}] mentioned this issue in [a #{entity_name} of #{project_name}|#{entity_url}]:\n"#{entity_title}"}
+ body: "[#{user_name}|#{user_url}] mentioned this issue in [a #{entity_name} of #{project_name}|#{entity_url}]."
}
unless existing_comment?(issue_name, message[:body])