Dashboard > Atlassian Plugins > ... > Suppliers > Global Supplier
  Atlassian Plugins Log In | Sign Up   View a printable version of the current page.  
  Global Supplier

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

Summary

This supplier can be used from any context, and provides information about global values, such as the current user, the date/time, etc.

Details

Name: Global Supplier
Prefix: global (required)
Supported Content: N/A
Provided By: Reporting Plugin, from version 1.0.2

Keys Supported

The following are the list of keys which this supplier will return a value for.

Key Content Types Return Type Description
current date Date The current date/time.
current user User The current user.

Examples

Display the current user and time.

Welcome, {report-info:global:current user|link=true}, it is now {report-info:global:current date > date:h:mm a 'on' MMMM d, yyyy}.

Which will look like this:

Welcome, , it is now 4:06 PM on January 6, 2009.

The global supplier seems to require a user session. The username and date above will appear to be blank unless you are actually logged in.

The default behavior of the current user key is to return a full link to the user name. If you want to simply get the user's name without creating a link, use something like this instead:

{report-info:global:current user>user:full name}

Here's another example that just displays the email:

{report-info:global:current user>user:email}
Copyright(c) CustomWare Asia Pacific Pty Ltd
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators