I have just added an escalation service in scriptrunner which triggers my custom event which then triggers my mail listener.
The goal is to get all overdue issues of each reporter and send them an email containing a list of said issues with the task to go through them.
I've so far only been able to trigger one mail per overdue issue which can be quite overwhelming depending on how many there are.
Now, how could I get a list or a collection of all overdue issues for each reporter and send them only one email with this list?
Here's my code so far.
Send Custom Mail
Condition and Configuration
def rendererManager = ComponentAccessor.getComponent(com.atlassian.jira.issue.RendererManager.class)
def fieldLayout = ComponentAccessor.getFieldLayoutManager().getFieldLayout(issue)
def rndDesc = rendererManager.getRendererForField(fieldLayout.getFieldLayoutItem("description"))
config.issueKey = issue.key
config.issueSum = issue.summary
config.issueRep = issue.reporter?.displayName
config.issueAssignee = issue.assignee?.displayName
config.issuePrio = issue.priority?.name
config.issueStatus = issue.status?.name
config.issueURL = "[OUR_JIRA]/browse/$issue.key"
config.issueDesc = "Keine."
//---Format specific values
config.issueDesc = rndDesc.render(issue.description, null)
issue.reporter != issue.assignee
Thanks for any help
Perhaps you could accomplish something similar with Jira's built-in Issue Filter subscriptions? https://confluence.atlassian.com/jira064/receiving-search-results-via-email-720416706.html
Each user could just subscribe to a filter with JQL like
duedate < now() and resolution = Unresolved and assignee = currentUser()
If all the users are in a group, you could just setup a subscription to that filter for them.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...
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!
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