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

Added by admin , last edited by David Peterson on Feb 27, 2007  (view change)
Labels: 

{group-data}

Plugin: Scaffolding Plugin, from version 2.2.x

Allows data to be grouped within a named data set.

Description

This can be used as a replacement for the deprecated scaffold macro if you have existing data you need to access. Simply replace {scaffold:Name} with {group-data:Name}

Usage

{group-data:name}
  {xxx-data:sub-field}
{group-data}

Parameters

Name Required Default Description
[default]/name
The group field name.

Hi,

I got following piece of code grouping some data:

{hidden-data}
{group-data:grdIssueInfo}
{page-info:title\|page=@self}
\\
{text-data:txdIssueDesc\|type=area\|width=800px\|height=1000px}
{text-data}
{group-data}
{hidden-data}



Now I want to retrieve all the data contained in the

{group-data:grdIssueInfo}

from another page.

This is done via a reporter with following line:

{report-body}{report-info:data:grdIssueInfo}{report-body}

This however returns nothing.

Addressing a particular part of the grouped data does work:

{report-body}{report-info:data:grdIssueInfo.txdIssueDesc}{report-body}

My idea was to use this group-data macro to be able to immediately retrieve all data inside the macro.

Is this possible?

Regards,

I.

'data:grdIssueInfo' should actually return a Map object. But, it won't display its contents by default. You can do something like this:

{report-on:data:grdIssueInfo > @all|separator=comma}{report-info:key}: {report-info:value}{report-on}

Alternately, you can plugin the 'data:grdIssueInfo > @all' into a local-reporter.

That's it, thanks.

I.

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