It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

if stash resolves an issue on merge and there is a required field to resolve a bug will the merge fail?

Casey A Nov 17, 2014

If you have JIRA setup to require a field to resolve a bug and you have stash set to resolve the issue upon merge will the merge fail?

 

example:

 

say we had JIRA setup to force a user to enter their "unit-test" name upon when moving an issue to resolved.

also stash is setup so that if a pull request is linked to an issue it will be resolved on merge.

scenario:

Alice creates BUG-1

Alice then links BUG-1 to pull request 2

Bob verifies and then merges pull request 2

Does BUG-1 then go to resolved state? does the merge request fail due to not having the required fields to resolve the issue?

Is there any way to force the merge to fail until they somehow provide the required "unit-test" field?

1 answer

0 votes
Michael Heemskerk Atlassian Team Dec 19, 2014

Hi Casey,

The issue transitioning happens after the pull request is merged. If the issue is missing the required field, you will still be able to merge the pull request, but the issue won't be transitioned into the resolved state (because JIRA won't do it).

If you want to prevent the pull request from being merged, you can build a plugin to block it by using a MergeRequestCheck. You can find documentation and examples on http://developer.atlassian.com:

https://developer.atlassian.com/stash/docs/latest/how-tos/repository-hooks.html

Cheers,

Michael

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,938 views 1 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you