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

Added by david , last edited by David Peterson on Oct 17, 2007  (view change)
Labels: 

{number-filter}

Plugin: Reporting Plugin, from version 1.0

This filter will ensure that the specified 'prefix:key' value is a number, and that it matches the required criteria.

Description

It must be used in a reporter macro.

Usage

{number-filter:prefix:key|minValue=[number]|maxValue=[number]|decimal=true/false|required=true/false}

Parameters

Name Required Default Description
[default]/key
The key value to filter on.
minValue
If specified, the number must be greater than or equal to the specified value.
maxValue
If specified, the number must be less than or equal to the specified value.
decimal
If specified, setting it to 'true' will require that the number is a decimal type, and setting it to 'false' will require it is a whole number. By default either is accepted.
required
false
If set to 'true', the key value must have a value of some sort - it may not be empty.

See Also

Hi,

Is there a way to filter out some parts of certain report items? For example, display the first image attached to the reported page if there is one available, but display "No image available" otherwise?

Thanks a lot for your help,
Vincent

As suggested in my comment on report-image, I would use a report-block to achieve this, with a report-empty containing "No image available".

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