Skip to end of banner
Go to start of banner

Supported macros

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Canned Responses allows you to use various macros to retrieve issue related values. Here is the full list:

Macro

Example result
Special Macros
currentUserDisplayName
Damian Skrodzki
currentUserFirstName
Damian
currentUserName
dskrodzki
cursor
(indicates cursor position after Canned Response is inserted)
date
15/Jun/15 (produces current date)
Standard fields
affectsVersion
1.2, 1.3
assigneeName
Damian Skrodzki
assigneeFirstName
Damian
assigneeUserName
dskrodzki
components
Core, Documentation
fixVersion
1.2, 1.3
issueDescription

Create list of all macros so that users can easly see them all in one place before installing the plugin.

issueKey
CT-198
issuePriority
Highest
issueStatus
In Progress
issueSummary
Add "Supported Macros" section in CT documentation
issueType
Task
labels
Documenatation
projectKey
CT
projectName
Canned Responses
reporterName
Sławomir Ginter
reporterUserName
sginter
reporterFirstName
Sławomir
Sample custom fields
Sprint_10000
Sample Sprint
Story Points_10002
3.0
and all the others

Unresolved macros

Rendering template sometimes might display "Unresolved macros detected" warning. This happens in two scenarios:

  • the issue have empty value for the used macro (for example Custom Field value is "" or issue's description is empty)
  • a different macro was meant to use

It's worth to double check that the template is using right macros. Otherwise it is enough to review the rendered comment before posting.

 

  • No labels