I have a workflow setup to automatically assign tickets to particular users based on another field on creation. The assigning is working fine, but they don't receive an email like they should.
The users have emails that link to distribution groups, so the email should be going out to a group of people.
I have this workflow in a hidden transition that loops back to the open status, so I am unsure if that would cause some kind of issue.
Basically my process is that on create it runs a script to look at a database to find the users location, then there is a post function that will set a custom field support group, then it transitions using the hidden transition, then there is a post function to set assignee based on the support group field.
- Creates the issue originally.
- Re-index an issue to keep indexes in sync with the database.
- Fire a Issue Created event that can be processed by the listeners.
- Jython post-function script to set location
- The value of field SD Support Group of the current issue will be set to the result of a Groovy expression (replacing existing values).
- Transition 131 will be triggered on the issue.
- Set issue status to the linked status of the destination workflow step.
- Add a comment to an issue if one is entered during a transition.
- Update change history for an issue and store the issue in the database.
- Re-index an issue to keep indexes in sync with the database.
- Fire a Generic Event event that can be processed by the listeners.
- The value of field Assignee of the current issue will be set to the result of a Groovy expression (unless the field already has a value).
Why aren't emails being sent to the assignee when they are assigned? The assignee does get an email if I choose them as the assignee on creation manually.
Is there a better way to handle this kind of thing?