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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
484f19ed
Commit
484f19ed
authored
Sep 28, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include global labels when moving an issue to another project
parent
fd0ba372
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
app/services/issues/move_service.rb
app/services/issues/move_service.rb
+6
-2
No files found.
app/services/issues/move_service.rb
View file @
484f19ed
...
@@ -52,8 +52,12 @@ module Issues
...
@@ -52,8 +52,12 @@ module Issues
end
end
def
cloneable_label_ids
def
cloneable_label_ids
@new_project
.
labels
params
=
{
.
where
(
title:
@old_issue
.
labels
.
pluck
(
:title
)).
pluck
(
:id
)
project_id:
@new_project
.
id
,
title:
@old_issue
.
labels
.
pluck
(
:title
)
}
LabelsFinder
.
new
(
current_user
,
params
).
execute
.
pluck
(
:id
)
end
end
def
cloneable_milestone_id
def
cloneable_milestone_id
...
...
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