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
3b525558
Commit
3b525558
authored
Feb 03, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update jira service initializations.
parent
cef9016b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
app/models/project_services/jira_service.rb
app/models/project_services/jira_service.rb
+14
-4
No files found.
app/models/project_services/jira_service.rb
View file @
3b525558
...
...
@@ -18,7 +18,7 @@ class JiraService < IssueTrackerService
prop_accessor
:username
,
:password
,
:api_version
,
:jira_issue_transition_id
,
:title
,
:description
,
:project_url
,
:issues_url
,
:new_issue_url
before_validation
:set_api_version
before_validation
:set_api_version
,
:set_jira_issue_transition_id
def
title
if
self
.
properties
&&
self
.
properties
[
'title'
].
present?
...
...
@@ -49,16 +49,26 @@ class JiraService < IssueTrackerService
)
end
def
set_api_version
self
.
api_version
||=
"2"
end
def
execute
(
push
,
issue
=
nil
)
close_issue
(
push
,
issue
)
if
issue
end
def
create_cross_reference_note
# TODO implement
end
private
def
set_api_version
self
.
api_version
||=
"2"
end
def
set_jira_issue_transition_id
self
.
jira_issue_transition_id
||=
"2"
end
def
close_issue
(
push_data
,
issue_name
)
url
=
close_issue_url
(
issue_name
)
commit_url
=
push_data
[
:commits
].
first
[
:url
]
...
...
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