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
ad556726
Commit
ad556726
authored
Nov 01, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include assignee id in bulk issue update
parent
4fa8e2b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/assets/javascripts/boards/components/modal/footer.js
app/assets/javascripts/boards/components/modal/footer.js
+2
-1
No files found.
app/assets/javascripts/boards/components/modal/footer.js
View file @
ad556726
...
@@ -32,12 +32,13 @@ gl.issueBoards.ModalFooter = Vue.extend({
...
@@ -32,12 +32,13 @@ gl.issueBoards.ModalFooter = Vue.extend({
const
issueIds
=
selectedIssues
.
map
(
issue
=>
issue
.
id
);
const
issueIds
=
selectedIssues
.
map
(
issue
=>
issue
.
id
);
const
currentBoard
=
this
.
state
.
currentBoard
;
const
currentBoard
=
this
.
state
.
currentBoard
;
const
boardLabelIds
=
currentBoard
.
labels
.
map
(
label
=>
label
.
id
);
const
boardLabelIds
=
currentBoard
.
labels
.
map
(
label
=>
label
.
id
);
const
assigneeIds
=
currentBoard
.
assignee
&&
[
currentBoard
.
assignee
.
id
];
// Post the data to the backend
// Post the data to the backend
gl
.
boardService
.
bulkUpdate
(
issueIds
,
{
gl
.
boardService
.
bulkUpdate
(
issueIds
,
{
add_label_ids
:
[
list
.
label
.
id
,
...
boardLabelIds
],
add_label_ids
:
[
list
.
label
.
id
,
...
boardLabelIds
],
milestone_id
:
currentBoard
.
milestone_id
,
milestone_id
:
currentBoard
.
milestone_id
,
assignee_ids
:
[
currentBoard
.
assignee_id
]
,
assignee_ids
:
assigneeIds
,
weight
:
currentBoard
.
weight
,
weight
:
currentBoard
.
weight
,
}).
catch
(()
=>
{
}).
catch
(()
=>
{
new
Flash
(
'
Failed to update issues, please try again.
'
,
'
alert
'
);
new
Flash
(
'
Failed to update issues, please try again.
'
,
'
alert
'
);
...
...
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