summaryrefslogtreecommitdiff
path: root/app/services/boards
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-10-06 14:49:59 +0000
committerFatih Acet <acetfatih@gmail.com>2016-10-06 14:49:59 +0000
commit9a13f885a9dc7b072d41160a6d3db965c9114b4b (patch)
tree5becd7566eae9f65806e99035fe3651579e27b44 /app/services/boards
parentdcfda304aa8c06f427cb5672ceb4e070047436be (diff)
parent8ad923695e54c7ac6e9c47c37c505a7ac6b34017 (diff)
downloadgitlab-ce-9a13f885a9dc7b072d41160a6d3db965c9114b4b.tar.gz
Merge branch 'issue-boards-new-issue' into 'master'
Issue boards new issue form ## What does this MR do? Adds a new issue form into the issue boards lists. ## Screenshots (if relevant) ![Screen_Shot_2016-10-03_at_14.57.30](/uploads/17fe6cd37bd020a2ee1688e0b496c18f/Screen_Shot_2016-10-03_at_14.57.30.png) ![Screen_Shot_2016-10-03_at_14.57.32](/uploads/c3f12bcb9ff9a0e7ce5b0bb06dfb0dd7/Screen_Shot_2016-10-03_at_14.57.32.png) ## What are the relevant issue numbers? Part of #21219 See merge request !6653
Diffstat (limited to 'app/services/boards')
-rw-r--r--app/services/boards/issues/create_service.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/services/boards/issues/create_service.rb b/app/services/boards/issues/create_service.rb
new file mode 100644
index 00000000000..3701afd441f
--- /dev/null
+++ b/app/services/boards/issues/create_service.rb
@@ -0,0 +1,16 @@
+module Boards
+ module Issues
+ class CreateService < Boards::BaseService
+ def execute(list)
+ params.merge!(label_ids: [list.label_id])
+ create_issue
+ end
+
+ private
+
+ def create_issue
+ ::Issues::CreateService.new(project, current_user, params).execute
+ end
+ end
+ end
+end