Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,455
Community Members
 
Community Events
184
Community Groups

How to display the parent issue key in the email template

need an help in displaying the parent issue key in the email template.

Please help me in this 

1 answer

1 accepted

0 votes
Answer accepted
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 29, 2020 • edited

Hi @kiranmai genkolla are you on server or Data Center? In 8.14. simplified adjustment of templates was implemented:

https://confluence.atlassian.com/adminjiraserver/customizing-email-content-in-jira-server-1027142312.html

Can u please tell me .. can I use $! Issueparent.key

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 31, 2020

I don't have 8.14 version installed right now, so I cannot download templates easily, but you can use Java API in velocity templates. So you should be able to use 

issue?.getParentObject()?.getKey()
Like kiranmai genkolla likes this

issue.parent.key this is working for me to get the parent issue key display .

 

But now iam unable to display the parent value in subtask email template .

Eg : parent have abc (insight custom field) = xyz as values . I want to diplay the same in subtask .

 

Please help me in this ..

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 04, 2021

Hi @kiranmai genkolla I don't think it is easily doable. I am checking templates and it never uses CustomFieldManager or customField. It works mostly with history of the issue. Your problem is that you would need to implement template which works with some additional OSGi components (CustomFieldManager at least), but you would need also the Component which creates notification to "export" this component to the template which can't be done without adjusting Jira source code.

HI Martin ,

 

I have custom field values to display in the email template .

If suppose there are some 8 field to display in the email template , in which there are 2 fields which are not null value in it . In this case i should not display that 2 fileds which are having null in the email .

 

Can u please help me in this .

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 07, 2021

Can you post a template file here?

I have edit in html and that working fine ..

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events