The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How can I display information from the parent issue, on a subtask email ?

Sandy Rogers
June 19, 2012

When sending a subtask email, I would like to have some of the parent task information in the email. Can anyone help ?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Renjith Pillai
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 Champions.
June 19, 2012

As per the docs you should be able to get issue.getParent() to get the parent object. From this object you should be able to get the data from parent and add to the email content.

And this link also may be helpful. Do appropriate condition checks so that the template works for non sub-tasks items too.

0 votes
Sandy Rogers
June 24, 2012

Can you please help me with an example of the syntax I should use? I am trying to put custom fields from the parent issue into a subtask email and am not familiar with the language (I think it's JAVA)

TAGS
AUG Leaders

Atlassian Community Events