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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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 ..

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 .

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you