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 vote

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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

66 views 0 5
Read article

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