Mail Notification for svn commits from jira

Hi,

We are planning to integrate jira with jira subversion plugin.

Can any one please suggest whats the way to send mail notification whenever the user commits from SVN. Is there any way to trigger mail from jira like issue creation,issue closed etc same for issue commit?

Thanks in advance

Regards,

Jai

2 answers

1 votes

The Atlassian subversion plugin really does only do the basics. It reads subversion for relevant information, indexes it locally, and then checks the index when a user looks at an issue. It's a passive pull - it issues a simple "what's changed since I last asked you" call to subversion and parses the result.

If you want it to do more, you'll have to code the whole lot into the plugin - if you want to go that way, I'd be looking at the pull-and-index step, where you'll need to persuade it to fire events if you want to use Jira's internal notification schemes.

There's also the Subversion ALM plugin. More features, but not including email on subversion change. I don't know the internals of that at all though, it could be (and probably is) a lot closer to what you need.

Finally, I'd not actually bother with Jira. It's a doddle to write "send email" scripts in bash/python/ruby/your-language-of-choice, and use one of them as a post-commit hook on the subversion repo.

Subversion ALM is closed source. However, it is open in some sense as it provides full access to the whole Subversion indexed data through standard JDBC and fires events to notice other plugins about new commits.

So you can do almost anything like watch modifications under a directory and send email notifications, create new issues or change their status, etc. There are not much limits about you can do as you have full access to JIRA through the Java API, full access to Subversion (by including the Java SVNKit API in yout pom.xml) and Subversion ALM indexed data (by using the Java API). I cannot imagine anything more open and powerful.

If you use the Atlassian's plugin, then you have to modify the source code to support it.

If you use the alternative Subversion ALM plugin, things are a bit easier as it fires an event for every Subversion commit that you can capture from your own custom plugin and interact with JIRA accordingly.

You have to code with both plugins, but in my opinion, Subversion ALM is one step forward in this field.

There is available an example for commit event subscription here:

https://code.google.com/p/jira-svn-alm-db-demo/

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 ...

2,975 views 12 18
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