Filter subscriptions - send to custom field group?

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)?

1 answer

1 accepted

0 vote
Penny Wyatt Atlassian Team Aug 26, 2012

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 :)

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,228 views 14 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot