Details
-
Bug
-
Resolution: Fixed
-
Low
-
2.5.1
Description
I am trying develop Stash Repository Hook (pre receive) with config form. I try to use the Stash. template.branchSelector.input template in it.
I have learned these sources:
https://developer.atlassian.com/stash/docs/latest/soydoc/branch-selector-field.soy.htm
https://bitbucket.org/atlassian/stash-example-hook-protect-ref/
The last one renders dropdown menu on config-form, but no items inside.
All my experiments in forcing to work BranchSelector were failed.
I am always had hit on bug:
{Uncaught TypeError: Cannot call method 'getProject' of undefined revision-reference-selector.js:181},
when I trying to click on BranchSelector dropdown menu.
More detailed description of my experiments provided in questions:
https://answers.atlassian.com/questions/187876/why-doesn-t-branchselector-work
https://answers.atlassian.com/questions/188719/may-be-bug-in-branchselector
https://answers.atlassian.com/questions/173564/branch-selector
I think that bug reason is that repository-hook doesnt include dependency
{com.atlassian.stash.stash-web-api:branch-selector-field}, but it is only my opinion.