Custom actions with custom parameters

migs911 February 2, 2018

What is the best way to use my custom parameters in Custom Actions? Is it possible?
For example:
I'm using tool for Gerrit, "git review". And when i want to download some review, i need to write command:
git review -d 12345

where  12345 - is a number of review and it's always different. Is it possible to create Custom Action, where it will ask me to write this number and then it will run follow command with passed review number:
git review -d $REVNUM

1 answer

2 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 2, 2018

Currently there are only three replacement tokens available for custom actions. Please vote, comment, or file an appropriate ticket for additional functionality. Having an interactive custom action workflow is a new request AFAIK.


Screen Shot 2018-02-02 at 10.24.57 AM.png

lsloan_umich March 25, 2024

Maybe it's poor form to reply to an old conversation, but here goes anyway…

I found this thread while searching for "sourcetree custom actions variables".  I think SourceTree should provide variables with…

  • URL of remote repo
  • name of current branch
  • name of branch selected in GUI

My desire is to make a custom action to open a remote repo (e.g., GitHub) in a browser, showing the specific branch selected.  For example, when I'm viewing the list of commits in the repo and I see a badge on it like "origin/6", I want to create a custom action for that badge that would open my web browser, loading the remote GitHub repo to show that specific branch.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events