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

Add text input for pull request plugin?

Jim Murphy Oct 10, 2013

Hi,

I am attempting to create a Stash pull request plugin where I would require a value at the time of the merge. Is there any way to be able to have the person doing the merge submit a value into a text field and in turn use that value elsewhere in the code?

Thanks,

-Jim

1 answer

0 votes
Charles O'Farrell Nov 30, 2013

Hi Jim,

Any luck? Unfortunately it's not something that's easy to do. We have a few servlet-based approaches for how to support this kind of plugin point, but nothing yet for REST. It's something we'd like to solve to make these customisations possible in different places.

As a (very dodgy) work around you could hijack the submit button in JS, send the request to your own REST endpoint as well as the normal one.

Cheers,

Charles

Jim Murphy Dec 02, 2013

Hi Charles,

I still have not come up with a solution. My current thinking is to do this outside of Stash using the REST api, which of course makes what we want to do an extra step. Utlimately, we would like to do a bulk update of a custom field in Jira.

When a merge takes place; gather all the Jira tickets from the commits to be merged and update the Jira field in each of those tickets based on what was entered into the text field by the person performing the merge.

-Jim

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...

3,087 views 1 20
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