Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9a286f3c
Commit
9a286f3c
authored
Jul 09, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify default message on double object
parent
e4b997a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
ee/app/serializers/integrations/jira/issue_entity.rb
ee/app/serializers/integrations/jira/issue_entity.rb
+2
-0
ee/spec/serializers/integrations/jira/issue_entity_spec.rb
ee/spec/serializers/integrations/jira/issue_entity_spec.rb
+1
-1
No files found.
ee/app/serializers/integrations/jira/issue_entity.rb
View file @
9a286f3c
...
...
@@ -74,6 +74,8 @@ module Integrations
def
author_web_url
(
jira_issue
)
# There are differences between Jira Cloud and Jira Server URLs and responses.
# accountId is only available on Jira Cloud.
# https://community.atlassian.com/t5/Jira-Questions/How-to-find-account-id-on-jira-on-premise/qaq-p/1168652
if
jira_issue
.
reporter
.
try
(
:accountId
)
"
#{
jira_issue
.
client
.
options
[
:site
]
}
people/
#{
jira_issue
.
reporter
.
accountId
}
"
else
...
...
ee/spec/serializers/integrations/jira/issue_entity_spec.rb
View file @
9a286f3c
...
...
@@ -8,7 +8,7 @@ RSpec.describe Integrations::Jira::IssueEntity do
let
(
:reporter
)
do
double
(
'displayName'
=>
'reporter'
,
'name'
=>
double
'name'
=>
double
# Default to Jira Server issue response, Jira Cloud replaces name with accountId
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment