Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Rules, ServiceDesk

Németh László
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2018

Hi! 

I want to write an automatic email in HTML format. I need the HTML code that show the main task's name of a subtaks. I tried already the code {{issue.parent}} and it worked, but that was only a number code and I need the complete text of maintask. 

1 answer

0 votes
Danyal Iqbal
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.
February 20, 2018

all java object are available in email templates (issue.description in velocity ). e.g to get issue description use something along the lines of :

#if ($issue.description)
    #set($textParagraph = $issue.htmlDescription)
    #rowWrapperNormal("#parse('templates/email/html/includes/patterns/text-paragraph.vm')", '', 'issue-description-container')
#end

To get description of parent issue $issue.parent.description

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events