Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Have JIRA send mails to watchers on commit from Stash on a ticket

Our workflow is as follows:

  • Someone opens ticket in JIRA (ABC-123)
  • Developer commits with commit message ("Do the thing, relates to ABC-123")
  • Developer pushes to Stash server
  • Commit will show on JIRA (and when viewed on Stash, ticket will linked to JIRA).

    • Note: I'm not sure if the above workflow is implemented by us, a plugin, or out of box by JIRA/Stash

My question is, Is there any event that is or can be fired in Jira that can be used for triggering email notification?

So if Alice, Bob and Charlie watch ABC-123, they should get an email about the commit by our Developer.

I have scourged the official documentation from Atlassian some examples, and various plugins, but didn't seem to find anything.

like image 545
Madara's Ghost Avatar asked Jan 26 '15 10:01

Madara's Ghost


People also ask

Why am I not receiving email notifications from Jira?

Email notifications are not being received by a specific group of people/person, and/or from specific Jira issues. Check the project permissions under the project's permission scheme. Users must have Browse Project permission for the project to which the issue belongs.


2 Answers

In general the work flow you use requires Git Integration Plugin for JIRA or JIRA DVCS Connector (if you are using Bitbucket or Github) so I assume you use that.

An alternative is to use the JIRA REST API to handle your tickets with git hooks - this should trigger the notifications on the JIRA tickets, since it's basically a shortcut that handles your JIRA tickets directly from commit messages - it's same as if you did it manually.

Assuming you have Git Integration Plugin for Jira, to make your notifications work you will have to edit the Notification Scheme - you will have to setup the project permissions - specifically View Development Tools permission must be granted to Users > Group > Project Roles (read Setting Up Repositories on http://bigbrassband.com/documentation.html) in order to view the git related data on JIRA ticket.

You may also want to go through all settings in the plugin "Advanced setup" and check if any of this features is set to Disabled and enable it.

like image 70
easwee Avatar answered Oct 13 '22 17:10

easwee


It looks like there's something called the Notification Assistant for JIRA. I'm pretty sure this is what my company uses to notify us of Github commits via the Hipchat application. Looks like there's a way to have it auto-generate emails for you too.

Take a look in the slideshow for it. Here's a couple screenshots that make me think this is what you're looking for.

enter image description hereenter image description here

like image 39
Colleen Stock Avatar answered Oct 13 '22 17:10

Colleen Stock