Send notification to manager when closing an issue

HI,

I have Jira onDemand. I have several Departments. All departments are a Project in Jira. All employees creates issue via email handler.

When an issue is closed by the IT team I want to send a notification to the manager of the appropiate department. These managers are NOT project leads and in general not using Jira for monitoring or anything. It just needs to be a notification.

Is this possible?

- Where do I set the correct manager per Department? As a new Role perhaps?

- Should it then be triggered by a Custom Event in the flow?

Thank you so much!

Blommetje

2 answers

1 accepted

1 vote
Joe Pitt Community Champion Jan 02, 2014

Are you running it through the test? If so check that you haven't disabled notifications to yourself in your profile. I set that up as the default on new installs as most people don't want notifications for actions they take

It has to be something in the custom flow. I Made a new project, copied the email settings and used the default jira flow. Then it works. So the flow is just the issue.

Problem is, I don't know where to look. The Notification Helper says it works. It works on another project, so it's not turned off by default. I also set an event for emailing a single emailaddress when the issue is closed (to my old email hotmail for testing) which also does not work.

My shot is, the email must be triggered when the issue is closed (as the notification helper checks) but it never closes! In my flow it says:

- step name: Closed

- linked status: Closed

There are not Operations on it.

Any ideas?

First look into the postfunctions of this closed step. See which event is triggered.

Then look into your notification scheme. Does the "Manager Role" gets notified by this event?

Got it working. I removed the step 'Closed' (which I think I added myself) and set the Default Jira 'Closed'. Published this new flow and BAM! All works like a charm.

Now I will copy this flow and rename it per Department, add the corresponding managers and set them in the roles. Should be good!

Thank you so much!

Ai, I was too quick with thinking I had it working. Well, it does work, but I forgot 1 important part.

I'll try to explain. I have several divisions on my website (IT, TV, .) Withing these divisions there are subcategories. For IT that is for example, Printer, Laptop, Notebook, Monitor, SSD, HDD. All these subcategories have their own manager.

When an issue is created, the Division is set by Project. The component is used for the subcategory.

Is it possible to send to a user (group) a notification based on Component?

Thanks!

You could send a notification to the component lead.

Hi Udo,

One more question.. I have a custom Flow build from scratch. Int his flow I have a status like 'In Archive'. Why does this step net appear in the 'Events' list in the Notification Scheme?

For every step in the Flow I want to send a group or Component Lead an email. But a lot of steps do show in the list. Why is this and can it be fixed?

Well, you won't see steps in the notification scheme but events triggered in those transitions.

You need to look at the post function in those transitions. I bet you will see there a generic event triggered. You can raise any other event there instead, even own defined events. Adjust your notification scheme according to the events triggered in your post functions

Yes, I would use a role and set only the department manager in each project to this role.

As for the notification, you need only to add this role in your notification scheme for the closed issue event (if this event is triggered in your closed transition).

Hi,

thanks for the help! I've set this up and the Jira Notification Helper says it works, but i do not receive any mails. I think the issue is because I have a custom Workflow. Is there any more debugging I can do? I'm puzzled why I don't receive the emails..

Which event is triggered in you custom workflow closed transition?

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,307 views 14 20
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