gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Send email notifiation to addigned user on due-date

Open meichthys opened this issue 2 years ago • 4 comments

Feature Description

It would be nice for an assigned user to get an external notification (like email) on the issue due date. Currently it is easy to miss due dates unless specifically looking for them.

meichthys avatar Nov 07 '22 18:11 meichthys

Any updates?

xxfogs avatar May 04 '24 17:05 xxfogs

We need an event like OnProjectDueDate which should be checked on a cron job.

lunny avatar May 05 '24 01:05 lunny

Is there an example of something similar having been done in the codebase? I might try doing this.

Although something that immediately pops into my mind are performance implications.

xxfogs avatar May 05 '24 12:05 xxfogs

You can try like this

  • [ ] Define a new notification method here https://github.com/go-gitea/gitea/blob/main/services/notify/notifier.go
  • [ ] Implement this method in https://github.com/go-gitea/gitea/blob/main/services/mailer/notify.go
  • [ ] Add a new method in https://github.com/go-gitea/gitea/blob/main/services/notify/notify.go & https://github.com/go-gitea/gitea/blob/main/services/notify/null.go
  • [ ] Create a cron task https://github.com/go-gitea/gitea/blob/main/services/cron/tasks_extended.go to check the due date and invoke above notifications.

lunny avatar May 06 '24 04:05 lunny