Giter VIP home page Giter VIP logo

sns2email's Introduction

sns2email's People

Contributors

kaihendry avatar

Watchers

 avatar James Cloos avatar Naor Biton avatar

sns2email's Issues

case_new - A new case is created -> Notify the Assignee

When a new case is created, we need to inform the person who is assigned to that case.
Notification type = case_new
The JSON payload:

{"notification_type": "case_new"
, "bz_source_table": "ut_notification_case_new"
, "notification_id": "ut_notification_case_new-xxx"
, "created_datetime" : "the timestamp when this was done ex: 2018-06-12 09:21:08"
, "unit_id" : "unit_id (the BZ id for the unit)"
, "case_id" : "case_id (the BZ case id)"
, "case_title" : "case_title (the title of the case)"
, "reporter_user_id" : "reporter_user_id (the BZ user id of the user who created the case)"
, "assignee_user_id" : "assignee_user_id (the BZ user id for the assignee)"}
What we need to do:

Send an email notification to the "assignee_user_id" to inform him/her that he/she has been assigned to this new case.

Unsubscribe:

  • We need to allow the user to unsubscribe from this type of notification (case_new) if he/she chooses to.
  • When a user has decided to unsubscribe, we should NOT send this user more notification if the notification type is case_new

case_user_invited - A New user is invited to a case -> Notify the invited user

When a new user is invited to a case we need to inform the person who is invited to that case.
Notification type = case_user_invited

The JSON payload:

{"notification_type": "case_user_invited"
, "bz_source_table": "ut_notification_case_invited"
, "notification_id": "ut_notification_case_invited-xxx"
, "created_datetime" : "the timestamp when this was done ex: 2018-06-12 09:21:08"
, "unit_id" : "unit_id (the BZ id for the unit)"
, "case_id" : "case_id (the BZ case id)"
, "case_title" : "case_title (the title of the case)"
, "invitee_user_id" : "invitee_user_id (the BZ user id for the invited user)"}

What we need to do:

Send an email notification to the "invitee_user_id" to inform him/her that he/she has been invited to this new case.

Unsubscribe:

  • We need to allow the user to unsubscribe from this type of notification (case_user_invited) if he/she chooses to.
  • When a user has decided to unsubscribe, we should NOT send this user more notification if the notification type is case_user_invited

case_assignee_updated - The user assigned to the case is changed -> Notify the new assignee

When the user assigned to a case change, we need to inform the person who is the new assignee to that case.
Notification type = case_assignee_updated

The JSON payload:

{"notification_type": "case_assignee_updated"
, "bz_source_table": "ut_notification_case_assignee"
, "notification_id": "ut_notification_case_assignee-xxx"
, "created_datetime" : "the timestamp when this was done ex: 2018-06-12 09:21:08"
, "unit_id" : "unit_id (the BZ id for the unit)"
, "case_id" : "case_id (the BZ case id)"
, "case_title" : "case_title (the title of the case)"
, "invitor_user_id" : "0 (this is a placeholder as we want to record who assigned this user to this case at a later stage)"
, "assignee_user_id" : "invitee_user_id (the BZ user id for the invited user)"}

What we need to do:

Send an email notification to the "assignee_user_id" to inform him/her that he/she has been assigned to this case.

Unsubscribe:

  • We need to allow the user to unsubscribe from this type of notification (case_assignee_updated) if he/she chooses to.
  • When a user has decided to unsubscribe, we should NOT send this user more notification if the notification type is case_assignee_updated

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.