OK, I have a couple of related issues. It's possible that some of the things I want to do are already there and I just can't figure out how to set them. It's also possible that they're not possible right now, in which case, consider this a feature requests.

Just to give a quick bit of background on the site -- it's basically a project that a couple of friends are working on, nothing commercial, nothing fancy. We installed the Support Ticketing System because we anticipate that we will start receiving quite a lot of e-mail with questions and such, and so STS will allow us to easily keep track of which ones have already been responded to by which admins. For our purposes, we would prefer it if users are not (or barely) aware that there is even a helpdesk installed; it would be great if for their purposes they just see an e-mail response to their query, and didn't even know that the system had actually opened a support ticket for them. As such, it is currently set up so that regular authenticated users can't even access STS from Drupal at all; the only way they can create a ticket is by sending e-mail to a specific address.

So here's some of the problems I have run into with this:

1) User sends mail to the specified address. Mail gets downloaded into STS. A new ticket is created. That works fine. The admins, who are auto-subscribed to the ticket, get an e-mail saying that there is a new ticket. Also fine. The user does not get an e-mail saying a ticket was created for them. That is indeed how I'd prefer it to be; also fine.
However, the user does not get any e-mails when one of the admins responds to their ticket. (The auto-subscribed admins do, so it is not an issue with sending mail.) This is something essential that needs to happen, because the user cannot access STS except by e-mail, so unless they get an e-mail they will not know there was an update. It is worth noting that the user is not auto-subscribed to their ticket, which I didn't do because I didn't want them to be sent a notification that a new ticket was created (which is what I assume would happen).

2) E-mail customization. I am guessing this is not currently possible without hacking the code and would therefore be a feature request. It'd be nice if the admins can configure how e-mails are outputted, and to be able to specify different formats for regular notifications, and ones that are sent to the creator of the ticket. The way e-mails are currently formatted, it looks like a lot of technical gibberish, which is fine for the admins, but I'd prefer for the users creating the tickets to get a much more 'human' response.

CommentFileSizeAuthor
#21 comments.png18.51 KBcoloryan
#21 permissions.png38.66 KBcoloryan
#8 autosubscribe.patch2.9 KBAnonymous (not verified)

Comments

jeremy’s picture

Status: Active » Fixed

> However, the user does not get any e-mails when one of the admins responds to their ticket.

Users will only receive emails if they are subscribed to the ticket. That is what subscription is.

> 2) E-mail customization.

Directions on how to do this are provided in the MAIL.txt document that comes with the support module.

When creating tickets, please limit them to one topic apiece -- when you cram multiple topics into one issue, it quickly becomes confusing for all involved.

xiehan’s picture

Actually, going through the settings again, let me rephrase since I misstated myself in #1;

I did not explicitly change settings to auto-assign the creator to their own tickets.
The admins are auto-subscribed to all tickets for the client.
I did not find an option to automatically auto-subscribe a user to the tickets they create.

When I went to look at the global settings just now, I found

Prevent user creating or updating ticket from unsubscribing
Check this box to prevent the user creating or updating a ticket from unsubscribing from notifications.

(which is checked, but that is irrelevant) Does that indicate that the user creating the ticket should always be automatically subscribed?
Because they're not, and that seems to be why they aren't getting any e-mail notifications.

jeremy’s picture

Category: support » bug
Status: Fixed » Active

> Does that indicate that the user creating the ticket should always be automatically subscribed?
> Because they're not, and that seems to be why they aren't getting any e-mail notifications.

Yes, I will see if I can duplicate that. That would be a bug. But note that when this is working correctly, they will also get a notification when the ticket is first created, not just when it is later updated.

timl’s picture

can confirm I'm having this issue as well with support-6.x-1.x-dev.tar.gz

timl’s picture

In support_save_message()

} else if (...newnode...){
    $node->created_by_email = TRUE;
    node_save($node);

The corresponding section in nodeapi is as follows:

// auto-subscribe ticket creator
if (variable_get('support_autosubscribe_creator', FALSE) || isset($node->created_by_email)) {
  support_subscribe_user($node->nid, $node->uid);
}

created_by_email not carrying through?

Anonymous’s picture

I'm not 100% positive, but it appears that this may be due to some permission checking that is called from within support_subscribe_user

Line 670, within support_nodeapi, tries auto-subscribe the ticket creator via a call to support_subscribe_user
Line 1297, within support_subscribe_user, tries to verify the user is able to access the 'client' via a call to support_access_clients
Line 380, within support_access_clients, returns if a given account (e.g. the newly created ticket author) has access to 'administer support' or 'access tickets' -- of which a newly created ticket author has neither.

neubreed’s picture

I am also having this issue. I can't even subscribe the original creator and thus unable to respond to their email.

Anonymous’s picture

StatusFileSize
new2.9 KB

Here's my very hacky patch to force the auto-subscribe to happen...

I don't recommend using the patch in production, but it's useful for testing.

darrenj1’s picture

hi, have you had much luck with the patch? Ive been trying to get this support module up and running for weeks but cant code things myself, can you let me know if it works?

Ghostthinker’s picture

The patch works - but not with current head. Manually appling works fine for me

coloryan’s picture

Yes, I'll confirm that the patch works. Manually applied and it did exactly what I was hoping for.

namalik’s picture

Thanks for the patch.. I have patched support 6.x-1.3 and it works... however, i keep on getting PHP internal server errors when i run cron job or add new comments to a ticket.. However, very few times after couple of retries the error does not come... When i update the support.module with the original file (the unpatched one), these errors are gone.. Hence cannot put it in the production env.. Any one else facing the same issue.???

namalik’s picture

I have even tested the version 6.x-1.x-dev as of today and the bug is still in there.. The users who create a new request by email do not get subscribed to the ticket notification, even if we have 'Prevent user creating or updating ticket from unsubscribing' checked in the setting page. Hence they do not get an email that the request is created, or any updates..

coloryan’s picture

Sorry, I can't reproduce the error. My system is live and running well.

namalik’s picture

Priority: Normal » Critical

I think you are creating a request by logging in with a user. Have to tried creating a request by sending an email.. where the support module add a new user (if he/she does not already exist) to the durpal system, and creates a new ticket. Now, at this stage, the support module should also subscribe this user to the new ticket, since he/she is the one who has created it. This is precisely what is not happening. If you are using the support module with integrated email, can you please test this above mentioned scenario and let us know the result? Many Thanks..

I am not wondering if perhaps the other people who are unable to reproduce this error are trying to reproduce it by creating the ticket from the support module itself instead of sending an email. Also, the title of this Issue does not mention that this issue is specific to the setup where email is integrated. Perhaps i should try to change the title.

namalik’s picture

Title: E-mails to ticket authors » Emails notification subscription of ticket authors does not happen when they open new tickets by sending email to support

I have changed the subject to clarify the issue/bug.

Apart from this bug, however, the original issue creator apparently also have another requirement of an option of making the ticket creator/author (through email) only get the update email messages (notification) and not the initial new ticket email message (notification). Thus, the original issue creator is requested to create another issue request regarding the same, which i believe will be categorized as future request (instead of a bug), as this particular issue entry is now focused to address the bug.

coloryan’s picture

My request comes from an email sent from the contact form, not a user.

namalik’s picture

Dear All,

I think I found the solution..

go to /admin/user/permissions and enable 'access ' for the 'authenticated user' column. This will enable the notifications to be sent to the user email that originally created the ticket (since that user is authenticated user and needs to have the permission to access any property of the ticket (notifications in our case).

namalik’s picture

Although giving the permission to 'access client tickets' to the authenticated users does solve the problem of emails being sent to/received by the email based ticket creators, however, doing so enables the names of these users to appear in the assigned drop down list of the tickets, as if these users could be assigned the tickets to find a resolution.

Perhaps the permission entry 'access client tickets' mean:

1) Only the users with the permission entry 'access client tickets' can be subscribed to the the tickets (or any thing other access).
2) The users with the permission entry 'access client tickets' fall into the group of users that can provide support to solve the tickets.

What do you all think is the right solution to this problem? I have been thinking a lot on this and came up with the following possible solution (from the functional aspect), but I am not sure if it is practical and can be implemented from the technical perspective. I will mention it over here, and if it is not correct, at least it will give some material to think about for progress:

- Email based ticket creators get the 'access client tickets' permission automatically assigned to them.
- Only users with the additional and new 'can be assigned tickets' permission will have their name appear in the assigned dropdown list for tickets. Of course for this to work, the users must also have the permission of 'access client tickets'. Other users with only 'access client tickets' and not the 'can be assigned tickets' permission will not be able to be assigned the tickets.

Suggestions?

Thanks..

namalik’s picture

Yep, tested further.. and I think user having permission to 'access client tickets' and being able to get assigned ticket is not correct.. There should be another permission for users that can be assigned the tickets.. In the current scenario where i have given the access client tickets permission to all authenticated users, the email based ticket creators do get the email notification, however , if i have 5 support staff, and 50 users/customers, and all of them are listed in the assign dropdown list.. when instead only 5 support staff should have been listed.

coloryan’s picture

StatusFileSize
new38.66 KB
new18.51 KB

here are two screenshots. One of my permissions, the other of a comment field (those are only my employees, and there are currently 96 users in the database. Those 96 comprise of both employees and support ticket people. The ticket people fill out a webform, it's POP'd into the support module, and replied to from there.

My clients include three or four email addresses (general, reservations, accounting, marketing, tech, etc...)

That's about all I can offer, hope that it helps.

alfthecat’s picture

Hi,

I'd be in favor of the second option. Access tickets resulting in updates being sent to the email address that created the ticket, and the permission of 'can be assigned tickets' preventing all available Drupal users from appearing in the 'assign to' list.

namalik’s picture

Let me now present the other option which is the default and part of the original specifications. After proposing a change in functional specification (Above), and playing with the module for a while, i am now tilting back to the original specifications. The original specification seems to be simple:

- All email based ticket creators get subscribed to the notification for that new ticket (i believe this is not working at the moment, and can be fixed with the patch provided by mankind)
- 'Access client permission' is meant for the client support staff, and all users with this permission get their names in the assigned dropdown list (i think this is working fine).

So in all and all, if above is the original functional specification, perhaps only fixing this bug will solve the problem.

What do you all think?

rsevero’s picture

@namalik in #23:

This could work but in this case the documentation should explain that 'Access client' permission actually means the user will access this clients tickets AND be included in the assignable users list for that client.

iler’s picture

So has there been any progress in this automatic subscription issue?

jeremy’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Priority: Critical » Normal

Updating version and priority. Still needs to be resolved.

alfthecat’s picture

Patch from #8 no longer seems to be valid with the lates 6.x dev (from dec. 1)
I tried it and got:
patching file support.module

Hunk #1 FAILED at 667.
Hunk #2 FAILED at 745.
Hunk #3 FAILED at 756.
Hunk #4 FAILED at 1290.
4 out of 4 hunks FAILED 

Is there any advice to get the functionality working, so that ticket updates are sent to the email authors?

Thanks in advance!

mahimajulka’s picture

subscribing ..

tnfno’s picture

Was this bug never fixed? I have the same problem now in 7.x and it makes the module pretty useless when the customer who mails in the ticket never gets any notifications.

murugan11’s picture

#21 how to so all active user in the assigned drop down list...Right now its showing admin only

capfive’s picture

is this going to be fixed? I am also having issues in this, I can't even subscribe the creator of the ticket...

capfive’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Priority: Normal » Major

Change to 7.x-1.x-dev due to the age of the old issues

We have the user being subscribed when the email gets fetched, but once a comment is applied the user isn't subscribed anymore

jvdkolk’s picture

So the solution for me (or better: a workaround) was to give Authenticated User all 'Access tickets' permissions.

As our clients only communicate via e-mail, this is ok for us.

The only thing is that we should remember to grant a new permission for each new Support client added.

ilclaudio’s picture

Thank you koosvdkolk your workaroud helped me too with Drupal 7.50.

Howerver I still have a problem with this module.
With this permission enabled, when a visitor opens a ticket he (the visitor) receives a notification.
When an operator submits the first response the visitor receives another email.
And this is good.
If the visitor replies to this email, the system captures and associates the message to the right thread.
But if an operator replies to the ticket for the second time, no emails arrive to the visitor.

So it seems that only the first response is redirected to the person that opened the ticket.

Has anybody had the same problem?

Thank you

cld

glennnz’s picture

Version: 7.x-1.x-dev » 7.x-1.0-rc2

Updated version.

I'm running this on D7.67 with automatically being correctly assigned to the ticket, the user automatically being created, but NO notification emails going to the email creator of a ticket.

glennnz’s picture

Update.

If I add 'Authenticated User' to the 'Access client_name Tickets' permission, notifications begin to arrive.

I'll test further to see that they continue to arrive.

sibro’s picture

I am unable to find Access client_name Tickets Do I need a patch I am at 7.x-1.0-rc2+0-dev. Notification to requester is very important

purencool’s picture

Status: Active » Closed (outdated)