Velocity Contexts

The following table lists the Velocity contexts available for use in the XML descriptor and Velocity views.

Name

Type

Description

user

User

Currently logged in user

helper

JiraHelper

Convenient class which holds information such as the current request and selected project

xmlutils

XMLUtils

Utilities for basic XML reading

textutils

TextUtils

Utilities for common String manipulations

urlcodec

JiraUrlCodec

Utility for encoding a string

outlookdate

OutlookDate

Class to give a nice String representation of a date

authcontext

JiraAuthenticationContext

User locale dependant utility class. Can get the current user, locale, I18nBean (for internationalisation) and OutlookDate

dateutils

DateUtils

Utilities for displaying date/time

externalLinkUtil

ExternalLinkUtil

A simple utility class that lets you resolve external links that may need to change, because of partner sites and such

requestContext

VelocityRequestContext

A context that allows for different implementations depending on whether it is running in the scope of a web request, or via email.

req

HttpServletRequest

current request

baseurl

String

The base URL for this instance (velocityRequestContext.getBaseUrl())

Was this page helpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport