Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt
hiddentrue

Adding a column as a dropdown selection for each item using labels, metadata or users - Example 5, 6, 7

Table of Contents
minLevel
2
3
maxLevel3
outlinefalse
indent0px
typelist
separator
printable
pipe
false

list

select 

select 
Anchor
checklist-select
checklist-select

macro
macro
Code Block
title
{list-select}

Example 5 Adding a column as a dropdown metadata Yes/No selection for each item

AnchorExample 5Example 5

You can define a column as a selection.

Let's say we need to define whether or not the oviparous (the egg laying animals) are swimmers.

So we add the following list macros

:

  • list macro filtered by the label oviparous

  • list-excerpt macro to display the classification in a column.

  • list-select macro with the values yes and no, for the last column of the list.

Info
Note that for

For the list-select macro

that we didn't select the  checkbox

that we did not select the checkbox for Use labels, meaning that we are using a metadata value instead of a label.

Image Added
Image Removed
Markup
Code Block
titleMarkup
{
checklist
list:label=oviparous|name=Swimmers|useboards=false} {
checklist
list-excerpt:heading=Classification|width=10} {
checklist
list-select:heading=Can swim?} Yes No {
checklist
list-select} {
checklist
list

This displays the following lists:

Image Removed
Image Added


The metadata value for the Can Swim? metadata can be accessed later using list-attribute or any of the Comala Metadata macros

:

.

Image Removed
Image Added

For

the  

the  list-attribute macro, we indicate the attribute and the page

Image Removed
Image Added

If the page is left blank in the Edit macro dialogue box, the macro will seek the Can Swim? metadata value from the current page.

In our example, the metadata values are displayed for the page specified in each of the macros.

Image Removed
Image Added
Note that the

The example uses a Confluence table to display each question and the metadata value.


Markup

Code Block
titleMarkup
Can eagles swim? {checklist-attribute:attribute=Can swim?|page=Bald Eagle}

Can frogs swim? {checklist-attribute:attribute=Can swim?|page=Common Frog}
 

Example 6 Adding a column as a dropdown label selection for each item

AnchorExample 6Example 6 macro selection

 macro selection could use labels instead of metadata values.

Similar to Example 2, but in this example the actual labels used are birdfish, mammalamphibian or reptile but

each

each option could have a different value from the actual caption. 

For example, the caption for the label fish is It's a fish, or for bird is It's a bird

Image Removed
Image Added

In the body of the list-select

 macro each

 macro each caption is defined as <value>|<caption>.

The  

<value> 

<value> is the actual label, the <caption> is the actual caption displayed.

Image Removed
Image Added

The markup for this example is

:

Markup
Code Block
titleMarkup
{
checklist
list:label=oviparous|name=The oviparous|useboards=false} {
checklist
list-select:heading=Type|uselabels=true} fish|It's a fish amphibians|It's an amphibian reptile|It's a reptile bird|It's a bird {
checklist
list-select} {
checklist
list}

Example 7 Adding a column as a dropdown user selection for each item

AnchorExample 7Example 7

Users can also be selected using the list-select macro.

You can configure the list-select

 macro using

 macro using the Edit macro dialogue box.

Image Removed
Image Added

Users can be added as choices in the drop-down menu on the page by either:

  • using a Confluence group name to allow selection from the users who are members of the group.

  • using allto allow selection among all the existing users in the instance.

Image Removed
Image AddedImage Added

Image Removed

Markup

Code Block
titleMarkup
{
checklist
list:label=pets|name=Alpha Centauri Pets|useboards=false} {
checklist
list-select:heading=Lead Owner|usersgroup=all} {
checklist
list-select} {
checklist
list}
tip

In the list-select macro

  • if there is only one option to select from and store is set to checklist

Image Removed
Image Added
  • then the column is handled as a checkbox

( Image Removed).

Image Removed

See 
  • Image Added

Image Added

For further details - Example 11.

checklists contents