Dashboard > Atlassian Plugins > ... > Macros > list-option
  Atlassian Plugins Log In | Sign Up   View a printable version of the current page.  
  list-option

Added by admin , last edited by David Chui on May 31, 2007  (view change)
Labels: 

{list-option}

Plugin: Scaffolding Plugin

Generates a single, simple, list option.

Description

Must be contained inside a list-data macro.

Usage

{list-option:Label}wiki value{list-option}

Parameters

Name Required Default Description
[default]
The non-wiki label for the option.
sortValue
A String which can be used to determine the order in which the options appear in the list. If the sort value is not specified, the wiki text will be used for sorting instead.

Notes

  • The wiki content is required, while the label is optional.

Recipes

See Also

Hi, with the "list-option" macro, how do I get to the chosen label later on? For example the Value displayed on the screen post editing will be a readable sentence, but the Label can be short and something which we can action on later - how do I retrieve the label associated with the chosen value?

Cheers Nick 

Hello Nick,

Do you have any news on this?

We encounter the same question. We have a "Documentation status" which is a list-option without a Label, but with a wiki value or .

We want to create a report to count all pages with "Documentation status" = , but the text-filter include doesn't interprete or .

Thanks for your feedback.

Hendrik

You may have two possible issues.

  1. You need to put a 'reference:value' entry into your keychain to get the wiki text.
  2. You may need to escape your wiki markup in the 'include' parameter. This is done with a double-backslash before each special character.

If your list-data field is called 'Documentation status', you will need this filter in your report:

  {text-filter:data:Documentation status > reference:value|include=\\(/\\)}

Thank you David, it did the trick!

Is this attribute (reference:value) for a data field documented somewhere?

Copyright(c) CustomWare Asia Pacific Pty Ltd
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators