How to define select option input parameter type in user macro creation?

Alana Fernando Community Champion Jul 26, 2017

I need to define a select option input parameter in my user macro. how can i do this?

assume that i want below drop down list.

  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>

1 answer

1 accepted

Accepted Answer
0 votes
Alana Fernando Community Champion Aug 01, 2017

I found it by myself.

It is enum type.

for those who have the same issue, here is a example code for how to use enum type. 

## @param fontfamily:title=Font family|type=enum|desc=Choose font family. (some font families may not compatible with browsers)|enumValues=Times New Roman,Arial,Courier New,Tahoma,Trebuchet MS,Open Sans

<div style="font-family:$paramfontfamily;">$body</div> 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

311 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you