# Apache velocity templates changes are not reflected

**URL:** <https://community.developer.atlassian.com/t/apache-velocity-templates-changes-are-not-reflected/13277>\
**Category:** Jira Server\
**Tags:** template, email\
**Created:** [January 9, 2018, 12:33pm UTC](https://community.developer.atlassian.com/t/apache-velocity-templates-changes-are-not-reflected/13277 "2018-01-09T12:33:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![miguel.r](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@miguel.r](https://community.developer.atlassian.com/u/miguel.r)\
**Post date:** [January 9, 2018, 12:33pm UTC](https://community.developer.atlassian.com/t/apache-velocity-templates-changes-are-not-reflected/13277/1 "2018-01-09T12:33:09Z")

</div>

I’m trying to modify the email that is sent at user signup (specifically, a new JIRA SD customer created with an email request), so that id does not display the “Activate my account button”, following [Customizing email content | Administering Jira applications Data Center and Server 7.1 | Atlassian Documentation](https://confluence.atlassian.com/adminjiraserver071/customizing-email-content-802592932.html)  
I believe the Velocity template involved is “usercreated-nopassword.vm”, yet i tested also changing “usercreated.vm” and “usersignup.vm”

The changes I make to the Velocity template(s) (adding a string in the text ones, and “

some text
” ) are not reflected on the emails I am receiving (across jira restarts, and also when disabling cache in /atlassian-jira/WEB-INF/classes/velocity.properties)

I noticed that those tpls are missing in my atlassian-jira/WEB-INF/classes/email-template-id-mappings.xml (that i append at the end of this message), yet i see them in jira/atlassian-jira/WEB-INF/classes/hash-registry.properties

cp.templates/email/text/usercreated-nopassword.vm=78c683215823eb0b7941333c572fee2b  
cp.templates/email/html/usercreated-nopassword.vm=4983131a8e332ebdf34d71107974f5a1  
cp.templates/email/text/usercreated.vm=d71f90e2452b0704adb70f2820b2b843  
cp.templates/email/html/usercreated.vm=7b8345ef32d068408bc874469ba28ec6  
cp.templates/email/text/usersignup.vm=921e3779f6db7ca45e1068709ad40fd0  
cp.templates/email/html/usersignup.vm=007bc1f51f37c24ab31fde2d74a74549

what am i doing wrong?  
if those templates are missing in my /atlassian-jira/WEB-INF/classes/velocity.properties , where does jira gets them from?

Thanks

Miguel

```auto
<!-- this file should be updated in sync with EventType.java and EventType table -->
<templatemappings>
    <templatemapping id="1">
        <name>Issue Created</name>
        <template>issuecreated.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="2">
        <name>Issue Updated</name>
        <template>issueupdated.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="3">
        <name>Issue Assigned</name>
        <template>issueassigned.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="4">
        <name>Issue Resolved</name>
        <template>issueresolved.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="5">
        <name>Issue Closed</name>
        <template>issueclosed.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="6">
        <name>Issue Commented</name>
        <template>issuecommented.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="7">
        <name>Issue Reopened</name>
        <template>issuereopened.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="8">
        <name>Issue Deleted</name>
        <template>issuedeleted.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="9">
        <name>Issue Moved</name>
        <template>issuemoved.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="10">
        <name>Work Logged</name>
        <template>issueworklogged.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="11">
        <name>Work Started</name>
        <template>issueworkstarted.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="12">
        <name>Work Stopped</name>
        <template>issueworkstopped.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="13">
        <name>Generic Event</name>
        <template>issuegenericevent.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="14">
        <name>Issue Comment Edited</name>
        <template>issuecommentedited.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="15">
        <name>Issue Worklog Updated</name>
        <template>issueworklogupdated.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="16">
        <name>Issue Worklog Deleted</name>
        <template>issueworklogdeleted.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <templatemapping id="17">
        <name>Issue Comment Deleted</name>
        <template>issueupdated.vm</template>
        <templatetype>issueevent</templatetype>
    </templatemapping>
    <!--
         This is not mapped to an event type, these are the templates that are used when generating
         the mails sent out for filter subscriptions. The id has changed from 14 to 10000 in JIRA 3.8.
    -->
    <templatemapping id="10000">
        <name>Filter Subscription</name>
        <template>filtersubscription.vm</template>
        <templatetype>filtersubscription</templatetype>
    </templatemapping>

```

---

<div class="post-metadata">

**Author:** ![acalantog](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/acalantog/32/37988_2.png) [@acalantog](https://community.developer.atlassian.com/u/acalantog)\
**Post date:** [January 10, 2018, 6:02am UTC](https://community.developer.atlassian.com/t/apache-velocity-templates-changes-are-not-reflected/13277/2 "2018-01-10T06:02:57Z")

</div>

Hi @miguel.r.

Are you using the same JIRA Server version defined in the tutorial (i.e. 7.1)?

 ![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/b/c/bc82379bb7bf14bab7d6805cca7d5477f3b036f4.png)

Cheers,  
Anne Calantog

---

<div class="post-metadata">

**Author:** ![miguel.r](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@miguel.r](https://community.developer.atlassian.com/u/miguel.r)\
**Post date:** [January 10, 2018, 10:43am UTC](https://community.developer.atlassian.com/t/apache-velocity-templates-changes-are-not-reflected/13277/3 "2018-01-10T10:43:06Z")

</div>

Hello @acalantog,  
yes I am (Jira 7.60., Jira SD 3.9.0)

Please not that i’m using Jira SD for opening the request (and so create the user)  
I can change all the SD email templates in _server_/servicedesk/admin/_project_/customer-notifications (see [Set up notifications for your customers and team | Jira Service Management Cloud | Atlassian Support](https://confluence.atlassian.com/servicedeskcloud/managing-service-desk-notifications-732528936.html))  
Yet the User Creation one is not in the list.  
Are those Service Desk Email Notifications Templates matching any file in Jira folder?  
Is the “User Created” Email dealt by Jira or Jira Service Desk?

Cheers,  
Miguel

---

<div class="post-metadata">

**Author:** ![miguel.r](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@miguel.r](https://community.developer.atlassian.com/u/miguel.r)\
**Post date:** [January 16, 2018, 10:25am UTC](https://community.developer.atlassian.com/t/apache-velocity-templates-changes-are-not-reflected/13277/4 "2018-01-16T10:25:18Z")

</div>

Hello @acalantog , any news over this issue?  
It’s actually a blocker in my use case, since i would be sending emails with a broken activating link, not exactly a nice welcome to my customers.  
Please let me know if i should have any news for me or if ask this somewhere else.

Greetings

Miguel

---

<div class="post-metadata">

**Author:** ![acalantog](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/acalantog/32/37988_2.png) [@acalantog](https://community.developer.atlassian.com/u/acalantog)\
**Post date:** [January 17, 2018, 6:39am UTC](https://community.developer.atlassian.com/t/apache-velocity-templates-changes-are-not-reflected/13277/5 "2018-01-17T06:39:08Z")

</div>

Hi @miguel.r,

Apologies, our documentation can be a bit frustrating. I think that you’re in the right vm, usersignup.vm or usercreated.vm. I only have tried to modify a different template before, but If you notice in the usersignup or usercreated vms, content of the vm is retrieved from a properties file:

`jira-install-dir\atlassian-jira\WEB-INF\classes\com\atlassian\jira\web\action\JiraWebActionSupport.properties`

and several vms are included there. You might want to try changing that to test your scenarios. Revert your changes and make simple changes in the properties file to test, and move on from there. More information [here](https://community.atlassian.com/t5/Jira-questions/Customizing-Email-Text-Jira-User-Invite/qaq-p/358397).

Cheers,  
Anne Calantog
