how to customize email content when issue re-assigned to some other user. it should include the issue-type

Ramaiah Pendli March 16, 2016

how we can modify the re-assigned ticket email content should include the issue-type, only we will get the issue type in email while creating new ticket,

Could you please help us to how to customize email content when issue re-assigned to some other user. it should include the issue-type

2 answers

0 votes
Sergio Rodriguez Sanchez March 25, 2019

Hello, we are trying to include a comment each time an issue is updated. We have arrived to where the templates are but we do not know how we can include that comment, can you help us?

 

[usradmin@ferro-jira html]$ ll
total 108
-rw-r--r--. 1 root root 689 Sep 5 2017 contactadministrator.vm
-rw-r--r--. 1 root root 34 Sep 5 2017 emailfromadmintext.vm
-rw-r--r--. 1 root root 381 Sep 5 2017 emailfromadmin.vm
-rw-r--r--. 1 root root 1872 Sep 5 2017 filtersubscription.vm
-rw-r--r--. 1 root root 1316 Sep 5 2017 forgotpassword.vm
-rw-r--r--. 1 root root 973 Sep 5 2017 forgotusernames.vm
drwxr-xr-x. 4 root root 268 Oct 11 2017 includes
-rw-r--r--. 1 root root 979 Sep 5 2017 issueassigned.vm
-rw-r--r--. 1 root root 773 Sep 5 2017 issueclosed.vm
-rw-r--r--. 1 root root 1179 Sep 5 2017 issuecommentedited.vm
-rw-r--r--. 1 root root 585 Sep 5 2017 issuecommented.vm
-rw-r--r--. 1 root root 1645 Sep 5 2017 issuecreated.vm
-rw-r--r--. 1 root root 315 Sep 5 2017 issuedeleted.vm
-rw-r--r--. 1 root root 667 Sep 5 2017 issuegenericevent.vm
-rw-r--r--. 1 root root 573 Sep 5 2017 issuementioned.vm
-rw-r--r--. 1 root root 90 Sep 5 2017 issuemoved.vm
-rw-r--r--. 1 root root 503 Sep 5 2017 issuenotify.vm
-rw-r--r--. 1 root root 93 Sep 5 2017 issuereopened.vm
-rw-r--r--. 1 root root 716 Sep 5 2017 issueresolved.vm
-rw-r--r--. 1 root root 666 Sep 5 2017 issueupdated.vm
-rw-r--r--. 1 root root 124 Sep 5 2017 issueworklogdeleted.vm
-rw-r--r--. 1 root root 120 Sep 5 2017 issueworklogged.vm
-rw-r--r--. 1 root root 137 Sep 5 2017 issueworklogupdated.vm
-rw-r--r--. 1 root root 596 Sep 5 2017 issueworkstarted.vm
-rw-r--r--. 1 root root 596 Sep 5 2017 issueworkstopped.vm
-rw-r--r--. 1 root root 1094 Sep 5 2017 usercreated-nopassword.vm
-rw-r--r--. 1 root root 2406 Sep 5 2017 usercreated.vm
-rw-r--r--. 1 root root 842 Sep 5 2017 usersignup.vm
[usradmin@ferro-jira html]$ pwd
/opt/atlassian/jira/atlassian-jira/WEB-INF/classes/templates/email/html
[usradmin@ferro-jira html]$

#disable_html_escaping()

#defaultMailHeader("jira.email.title.issue.updated", $changelogauthor)

#rowWrapperNormal("#parse('templates/email/html/includes/patterns/issue-title.vm')")

#if ($comment)
#parse('templates/email/html/includes/patterns/comment-top.vm')
#end

#if ($changelog)
#rowWrapperNormal("#parse('templates/email/html/includes/fields/changelog.vm')" '' 'wrapper-special-margin')
#end

#parse('templates/email/html/includes/changelog-issue-description.vm')

#set ($commentActionBody="#parse('templates/email/html/includes/patterns/comment-action.vm')")
#rowWrapperNormal($commentActionBody)

#parse("templates/email/html/includes/footer.vm")

 

Thank you!

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 16, 2016

Find the "reassigned" template and follow the guide at https://confluence.atlassian.com/jira/customizing-email-content-185729653.html

Ramaiah Pendli March 17, 2016

Hi Nic, i didn't fin the reassigned template file, we have below list of files 

/opt/atlassian/jira/atlassian-jira/WEB-INF/classes/templates/email/html
[root@vdev-jira html]# ls
issuecommentedited.vm issueupdated.vm
contactadministrator.vm issuecommented.vm issueworklogdeleted.vm
emailfromadmintext.vm issuecreated.vm issueworklogged.vm
emailfromadmin.vm issuedeleted.vm issueworklogupdated.vm
filtersubscription.vm issuegenericevent.vm issueworkstarted.vm
forgotpassword.vm issuementioned.vm issueworkstopped.vm
forgotusernames.vm issuemoved.vm usercreated-nopassword.vm
includes issuenotify.vm usercreated.vm
issueassigned.vm issuereopened.vm usersignup.vm
issueclosed.vm issueresolved.vm

i have tried with create new file based on issueassigned.vm but it didn't work for me, if it possible can you share the .vm file content with me.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 17, 2016

Sorry, yes, I slipped up.  There is no reassigned template.  It's the assigned one that you have found.

What changes have you made to that and did you restart JIRA?  Oh, and are you definitely set up to use html email in your profile?

Ramaiah Pendli March 20, 2016

Hi Nic,

After re-starting the JIRA it's working fine but i have edited template in 

/opt/atlassian/jira/atlassian-jira/WEB-INF/classes/email-template-id-mappings.xml

in line number 15 changed <template>issueassigned.vm</template> to <template>assigned.vm</template> ,

 

if i am comment exiting one, i am not getting any email.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 21, 2016

I would undo the changes you've made to the mapping file.  You don't need to change anything in there, and it's probably why you're not getting any emails.  All you need to do here is edit the assigned.vm file.

Suggest an answer

Log in or Sign up to answer