Automatically resolve JIRA issues when merging pull request in Stash?

When I merge a pull request in Stash, it would be great if it could automatically mark referenced JIRA issues as Resolved. Maybe it could look for specific wording surrounding the issue text in the pull request message and/or commit messages and determine specific resolution based on that. For example:

"Fixes ABC-123" --> Resolve as "Fixed"

"Relates to ABC-123" --> Do not resolve, but link the issue to the commit (current behavior)

Does this functionality exist?

2 answers

0 votes

It doesn't exist now. But you can create a Stash plugin to look for keywords and process the related JIRA issue using the JIRA REST APIs.

If only my boss would give me the time to do that.

There is a "Storyflow for Stash" plugin which helps with the Stash-Jira updates. It might not have the more detailed logic that you mention in your description. In which case, you're back to the custom plugin mentioned by Jobin.

Seen it already and it's incompatible with JIRA 6.

Uh oh. We're upgrading to Jira 6 this weekend. Since I support Stash, I may have some new work to do.

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,095 views 13 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