.btn.btn-default.discussion-create-issue-btn.has-tooltip{title: "Resolve all discussions in new issue",
"aria-label"=>"Resolve all discussions in a new issue",
"data-container"=>"body"}
=link_tocustom_icon('icon_mr_issue'),new_namespace_project_issue_path(@project.namespace,@project,merge_request_for_resolving_discussions: merge_request.iid),title: "Resolve all discussions in new issue",class: 'new-issue-for-discussion'
=link_tocustom_icon('icon_mr_issue'),new_namespace_project_issue_path(@project.namespace,@project,merge_request_to_resolve_discussions_of: merge_request.iid),title: "Resolve all discussions in new issue",class: 'new-issue-for-discussion'
.btn.btn-default.discussion-create-issue-btn.has-tooltip{title: "Resolve this discussion in a new issue",
"aria-label"=>"Resolve this discussion in a new issue",
"data-container"=>"body"}
=link_tocustom_icon('icon_mr_issue'),new_namespace_project_issue_path(@project.namespace,@project,merge_request_for_resolving_discussions: merge_request.iid,discussion_to_resolve: discussion.id),title: "Resolve this discussion in a new issue",class: 'new-issue-for-discussion'
=link_tocustom_icon('icon_mr_issue'),new_namespace_project_issue_path(@project.namespace,@project,merge_request_to_resolve_discussions_of: merge_request.iid,discussion_to_resolve: discussion.id),title: "Resolve this discussion in a new issue",class: 'new-issue-for-discussion'
=link_to"open an issue to resolve them later",new_namespace_project_issue_path(@project.namespace,@project,merge_request_for_resolving_discussions: @merge_request.iid)
=link_to"open an issue to resolve them later",new_namespace_project_issue_path(@project.namespace,@project,merge_request_to_resolve_discussions_of: @merge_request.iid)
| `labels` | string | no | Comma-separated label names for an issue |
| `created_at` | string | no | Date time string, ISO 8601 formatted, e.g. `2016-03-11T03:45:40Z` (requires admin or project owner rights) |
| `due_date` | string | no | Date time string in the format YEAR-MONTH-DAY, e.g. `2016-03-11` |
| `merge_request_for_resolving_discussions` | integer | no | The IID of a merge request in which to resolve all issues. This will fill the issue with a default description and mark all discussions as resolved. When passing a description or title, these values will take precedence over the default values. |
| `discussion_to_resolve` | string | no | The ID of a discussion to resolve. This will fill in the issue with a default description and mark the discussion as resolved. Use in combination with `merge_request_for_resolving_discussions`. |
| `merge_request_to_resolve_discussions_of` | integer | no | The IID of a merge request in which to resolve all issues. This will fill the issue with a default description and mark all discussions as resolved. When passing a description or title, these values will take precedence over the default values. |
| `discussion_to_resolve` | string | no | The ID of a discussion to resolve. This will fill in the issue with a default description and mark the discussion as resolved. Use in combination with `merge_request_to_resolve_discussions_of`. |
```bash
curl --request POST --header"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/4/issues?title=Issues%20with%20auth&labels=bug
@@ -15,7 +15,7 @@ feature 'Resolving all open discussions in a merge request from an issue', featu
it'shows a button to resolve all discussions by creating a new issue'do
within('li#resolve-count-app')do
expect(page).tohave_link"Resolve all discussions in new issue",href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)
expect(page).tohave_link"Resolve all discussions in new issue",href: new_namespace_project_issue_path(project.namespace,project,merge_request_to_resolve_discussions_of: merge_request.iid)
end
end
...
...
@@ -25,13 +25,13 @@ feature 'Resolving all open discussions in a merge request from an issue', featu
end
it'hides the link for creating a new issue'do
expect(page).not_tohave_link"Resolve all discussions in new issue",href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)
expect(page).not_tohave_link"Resolve all discussions in new issue",href: new_namespace_project_issue_path(project.namespace,project,merge_request_to_resolve_discussions_of: merge_request.iid)
end
end
context'creating an issue for discussions'do
beforedo
click_link"Resolve all discussions in new issue",href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)
click_link"Resolve all discussions in new issue",href: new_namespace_project_issue_path(project.namespace,project,merge_request_to_resolve_discussions_of: merge_request.iid)
end
it_behaves_like'creating an issue for a discussion'
...
...
@@ -64,13 +64,13 @@ feature 'Resolving all open discussions in a merge request from an issue', featu
it'has a link to resolve all discussions by creating an issue'do
page.within'.mr-widget-body'do
expect(page).tohave_link'open an issue to resolve them later',href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)
expect(page).tohave_link'open an issue to resolve them later',href: new_namespace_project_issue_path(project.namespace,project,merge_request_to_resolve_discussions_of: merge_request.iid)
end
end
context'creating an issue for discussions'do
beforedo
page.click_link'open an issue to resolve them later',href: new_namespace_project_issue_path(project.namespace,project,merge_request_for_resolving_discussions: merge_request.iid)
page.click_link'open an issue to resolve them later',href: new_namespace_project_issue_path(project.namespace,project,merge_request_to_resolve_discussions_of: merge_request.iid)
end
it_behaves_like'creating an issue for a discussion'
...
...
@@ -83,7 +83,7 @@ feature 'Resolving all open discussions in a merge request from an issue', featu
expect(page).tohave_link'Resolve this discussion in a new issue',href: new_issue_link
end
context'creating the issue'do
beforedo
click_link'Resolve this discussion in a new issue',href: new_namespace_project_issue_path(project.namespace,project,discussion_to_resolve: discussion.id,merge_request_for_resolving_discussions: merge_request.iid)
click_link'Resolve this discussion in a new issue',href: new_namespace_project_issue_path(project.namespace,project,discussion_to_resolve: discussion.id,merge_request_to_resolve_discussions_of: merge_request.iid)
end
it'has a hidden field for the discussion'do
...
...
@@ -68,7 +68,7 @@ feature 'Resolve an open discussion in a merge request by creating an issue', fe