I have a user macro that has a number of text inputs which users can put issue numbers in that link to an old, out-of-date issue tracking software (before we got JIRA!). Each input is then generated into a link or simply displayed depending on the viewing user's permissions.
However, this very inefficient. Ideally I would like a single text input where users could input issue numbers separated by commas and the macro would generate these links for each value.
Is it possible to build an array and then do a #foreach for each of these values? Does VTL understand that these values are separated? Is there another way?
Are you trying to do something like this?
## Macro title: Split Test ## Macro has a body: Y or N ## Body processing: Selected body processing option ## Output: Selected output option ## ## Developed by: Matthew J. Horn ## Date created: 07/15/13 ## Installed by: Matthew J. Horn ## This macro takes a comma separated list and splits them out in a bulleted list ## @param List:title=Name|type=string|required=true|desc=Comma Separated List #set( $myList = $paramList.split(",")) <ul> #foreach( $item in $myList ) <li>$item</li> #end </ul>
It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...
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