On this page
Description
Substitution variables are a powerful capability for some clients like Jira to customize the creation or updating of issues using values from issues or other Jira information. Variables provide text string representations of fields useful for inclusion in other fields - see Substitution Variables for Jira for more information. For other clients, there are more limited capabilities that follow the same general technique.
The syntax for referencing substitution variables is: %<variable name>%.
Example: %now%
Substitution variables and variable replacements
Variable Replacements are different than substitution variables. Don't confuse them or their uniquely different syntax.
Variables
Variable | Description | Notes | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
now | Current date/time in the default date/time format or a specific format. For clients that access a server and the server provides time information, it is the server's time and is only calculated once on first access to the server. Otherwise it is the clients time. | All clients | |||||||||||||||||||||||||||
base_url | Base URL | Blank if the client does not access a server | |||||||||||||||||||||||||||
user_id | Current user's id | Blank if the client does not define a user for server access | |||||||||||||||||||||||||||
function_<function name>(<parameters>)
| Functions that derive useful text values that can be used as substitution variables. Examples
|
|
Configured date format
For date substitution variables, the format of the replacement variable can be specified if the default format is not desirable. The format is specified by a Simple Date Format string enclosed in parenthesis following the substitution variable name. For example: %now(yyyy-MM-dd)% will result in replacement like 2019-11-08.
Client Specific Extensions
Substitution variables for Jira