The CT Mail module was recently removed from Case Tracker, with the intention that it will be replaced with a new module to integrate with the Notifications and Messaging Suite. The high level target here is that we need to be able to send messages on ticket updates that contain case specific information to appropriate users. Optionally we should also be able to accept email responses to these updates.
From a technical perspective there are a few things that we need to hit:
- Leverage Notifications & Messaging
- Leverage Token & existing tokens
- Leverage Mailhandler for incoming messages
- Get needed tokens into casetracker.module
- CT_Notif implements a new notification type: "Cases assigned to user"
- Avoid implementing a Custom UI if possible
- Implement hook_mailhandler to protect/change case states
Let's use this issue to collaborate around the larger issue here and get something basic together that is committable to CVS as `casetracker_notifications`. For patches that touch existing parts of Case Tracker let's open additional tickets.
This list came from an IRC discussion on #open_atrium with nvahalik, ianward and myself and is completely open for discussion.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 802182-8-case-comment-changes-token.patch | 9.51 KB | basvredeling |
| #7 | 802182-7-case-comment-changes-token.patch | 3.75 KB | basvredeling |
| #6 | 802182-6-case-comment-changes-token.patch | 3.57 KB | basvredeling |
Comments
Comment #1
nvahalik commentedSubscribing.
Comment #2
skesslersubscribe. - I am available to help with documentation.
Comment #3
dagmarI have created a different issue for Item 5: #805884: Casetracker Nofitications submodule
Comment #4
nvahalik commentedAs far as tokens go, the module already defines these 5:
So if a comment changes the status, you can show that what the status is now but you don't know what it changed from.
Would it be better to implement tokens that show up for comments that allow you to access the old values of the status, priority, type, etc? Or what if tokens were created that had something to the effect of:
"<attribute>: Old Value → New Value" if <attribute> changes? It could be blank if there is no change so that notification that goes out has what the comments have now.
Another way would be to simply have a token and/or a message part that could display this inside the message. Not sure what the most effective way to handle this is inside of of the N&M frameworks. By adding a message part and having the module generate that itself it would negate the need to really add any more tokens. Thoughts?
Comment #5
buddaAlso a token for the project associated with the ticket, case ID too.
Comment #6
basvredelingI created a small patch so the casetracker changes by comment are available as a new token. This token could be set in a messaging template as suggestion in #4 by nvahalik. I'm using this in an open atrium instance currently. Could you folks double check this?
Comment #7
basvredelingI attached the incorrect patch. This is the correct one.
FYI: the layout uses a theme function... it will only show correctly in plain text emails if you override: theme_casetracker_comment_changes().
Comment #8
basvredelingOkay, this is the last comment for now. I've taken all data generation logic out of the current theme function: theme_casetracker_comment_changes().
Now there is an extra theme function theme_casetracker_comment_changes_plain().
The token output uses the latter, the comment output uses the former.
This should work for most plain text email situations and it only required a minor change to create the correct output for html email.
Comment #9
metzlerd commentedWorking on the issue queue. This is three years old, and I'm wondering where this was left. I'm working on rules integration to facilitate a more flexible approach, but haven't factored in everything that is touched on in this module. Thoughts on whether this is still relevant?
Comment #10
basvredelingwow, uhmm. This is D6, so not really relevant any more. I'd prefer a rules based solution anyway. Thanks for cleaning stuff up!
Comment #11
metzlerd commentedThanks.