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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,713 views 17 21
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