I managed to make a subscription to a filter that sends e-mails to a group of users when the issue's due date has arrived (and it's not resolved yet). Is it possible to send these e-mails to a group that has been set in a custom field?
For example, let's say I have a GroupPicker custom field called "Responsible group". Then I have 3 issues A, B and C. Group1 is responsible for A and B. Group2 is responsible for C. All of the issues have the same due date.
Now, what I'd like to happen is, when the due date arrives, send all members of Group1 a mail about issues A and B, but Group2 - about issue C. And I'd like these e-mails to be sent periodically until they are resolved.
I was thinking about making the filter based on currentUser() being in "Responsible group", but I think JQL doesn't support that. Is there a way to do what I'm trying to? Maybe I need a plugin for that (can I make a plugin that runs itself on a timer)?
Do you have many groups? It seems you're almost there with the out-of-the-box functionality. If you have a smallish number of responsible groups, you could just manually create that many filters and subscriptions.
e.g.
Filter: project=PROJ and MyGroupPicker="Group1" and duedate < startOfDay() and resolution is empty
Subscription: Email to Group1
Filter: project=PROJ and MyGroupPicker="Group2" and duedate < startOfDay() and resolution is empty
Subscription: Email to Group2
etc.
If it's a larger number of groups, you could write a throwaway script to submit the HTTP requests to generate the filters and subscriptions. Maintaining a plugin is expensive; I wouldn't recommend it for a simple task like this unless there's no other option.
Hmm, I hadn't considered doing it with a script, thanks :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.