How to notify assignees of subtask when parent changes

Nigel Farmer May 16, 2013

If I update a story which has subtasks, I would like to be able to automatically notify users that are assigned to any subtasks of the story.

It is possible to configure this or automatically add assigness of the subtaks as wathcers of the parent?

2 answers

1 accepted

0 votes
Answer accepted
Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2013

Hi Nigel,

You can use script runner to send custom emails.

In a post-function, retrieve all subtasks and send out an email to the assignees. There is an example in the link below.

https://jamieechlin.atlassian.net/wiki/display/GRV/Post+Functions#PostFunctions-SendEmailWhenBlockerReported

MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2013

You'd only fire a post function as part of the workflow, not a general update event

Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2013

I am adding this functionality to the subtask assign plugin.

https://marketplace.atlassian.com/plugins/com.stygian.jira.plugins.subtaskassign

MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2013

But the question is about when a parent issue is updated, notify assignees of the subtasks. Updates come from multiple sources, Edit/Update, comment, assign, attach file, add sub-tasks, link.... etc. Even if it was part of the workflow, you'd have to have the post function in each and every transition. A listener would be better, no?

Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2013

Yes you are right Mathew. A post-function would only work during transition and notify all the subtask users.

If you want to notify on every update or any other issue events, then we need something different.

Liana Popa May 14, 2014

Do you have any plans to make your plugin available for OnDemand users as well?


Its my understanding that right now, your plugin & the Script Runner plugin are available only for the download versions of, not the OnDemand version.

0 votes
MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2013

There's a plugin that does it the other way round, when a sub-task changes, the watchers on the parent are notified. Maybe you could take the source and modify it?

https://marketplace.atlassian.com/plugins/jira-parent-watcher

Suggest an answer

Log in or Sign up to answer