Epic email notifications, todos, and autocomplete
## Autocomplete
- Follow up of https://gitlab.com/gitlab-org/gitlab-ee/issues/4066.
- This solves those problems so that we can re-introduce autocomplete for epics.
- Autocomplete should work when you type in the epic description and when you type an epic comment.
- For each of these autocomplete object/type, search according to the following:
- Username (Search users in whole instance.)
- Milestone (Search in current group and ancestor groups only. Find only group milestones in those groups only.)
- Label (Search in current group and ancestor groups only. Find only group labels in those groups only.)
- Epic (Search in current group and ancestor groups only.)
- Issue (Search in immediate children projects only.) **Need a way to specify projects in the autocomplete dropdown.**
- Merge request (Search in immediate children projects only.) **Need a way to specify projects in the autocomplete dropdown.**
## Email notifications
- Support email notifications for epics, similar to issues.
- Behavior analogous to issues.
- Send email notifications, with same formatting as issues.
- Same trigger events/conditions for sending as issues, excluding events that cannot happen on epics currently, such as assigning a user to an epic.
- Same implicit notifications (e.g. when you are @ mentioned) and explicit (when you toggle the notifications toggle in the sidebar).
- Toggle UI in the epic sidebar.
- Participants UI in the epic sidebar.
- Notifications settings follow the group settings for the group.
- Update the notifications settings API accordingly.
## Todos
- Todos support for epics, similar to issues.
- Same UI on todos page and analogous UI on epic page.
- Same way that an epic todo is triggered, as an issue todo.
- Filter by epics on the todos view.
- Need to update filter design to account for fact that epics are on groups not on project.
- Add "epic" to "type" dropdown.
- Update todos API.
epic