Skip to content

Change 'issue' word to 'epic' on epic work item emails

Felipe Cardozo requested to merge issue-471980-new_issue_email into master

What does this MR do and why?

Use epic word to reference epic work items instead of issue on emails.

This fixes emails for the following actions:

  • new issue
  • issue closed
  • issue reopened

related to #471980 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Trigger the emails changed using rails console
wi = Epic.last.work_item
u = User.first
Notify.issue_status_changed_email(u.id, wi.id, 'closed', u.id).deliver
Notify.issue_status_changed_email(u.id, wi.id, 'reopened', u.id).deliver
Notify.new_issue_email(u.id, wi.id).deliver
  1. Check http://gdk.test:3000/rails/letter_opener/ and all emails sent should refer to the work item as 'epic' instead of 'issue'.
Edited by Felipe Cardozo

Merge request reports