Sometimes, it is required to dynamically allocate the macro content for template purposes or other re-using reasons (e.g., when documenting many similar things, like micro services). For this, it might be necessary for the user to make the macros' parameters externally available. In the following sections, we present two examples that help users creating scripts for automation.
...
4) Fill in the code in the mandatory Template template field. The template content depends on what you like to include. The following examples show some possibilities. It is important to define the required parameters so that you can access them via the User user macro.
4.a Define a
...
template to include a file from Bitbucket Server with User Macro Template Syntax
Code Block |
---|
## This is an example macro ## @param repoSlug=Name|type=string|required=true ## @param projectKey=Name|type=string|required=true <ac:structured-macro ac:name="stashbranches"> <ac:parameter ac:name="repoSlug">$paramrepoSlug</ac:parameter> <ac:parameter ac:name="projectKey">$paramprojectKey</ac:parameter> </ac:structured-macro> |
...