Jira fields for custom html email template

m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2013

Is there a list of Jira fields that can be used on custom html emails?

I want to add things like project name, created time and issue type.

Thanks

2 answers

1 accepted

0 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2013

There's some manager classes but the main thing you have is the issue object, so you can call all the methods and properties listed here: https://developer.atlassian.com/static/javadoc/jira/5.0/reference/com/atlassian/jira/issue/Issue.html

> I want to add things like project name, created time and issue type.

issue.projectObject.name

issue.created (actually, use issue.getCreated() for this one, otherwise issue.isCreated() might be called instead).

issue.issueTypeObject.name

0 votes
John Chin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 30, 2013

Hi Matthew,

Please have a look on this article https://confluence.atlassian.com/display/JIRA/Customising+Email+Content and hope its help.

m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2013

That detail is for the velocity templates within jira, I am looking at the post function scripted html email function for the groovy script add on.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events