The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
bgannin
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.

Mac: https://jira.atlassian.com/browse/SRCTREE
Win: https://jira.atlassian.com/browse/SRCTREEWIN

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.

TAGS
AUG Leaders

Atlassian Community Events