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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

771 views 2 19
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