SOS email template for user creation!

Hi,

I need an urgent help! I have to change the user creation email template. I found the usercreated.vm file but when I opened, I found this content:

$i18n.getText("template.user.created.createdaccount")

   $baseurl

$i18n.getText("template.user.created.text.line1")
$i18n.getText("template.user.created.text.line2")

$i18n.getText("template.user.created.passwordchanged")

  ${baseurl}/secure/ResetPassword!default.jspa?os_username=$velocityhelper.urlencode($user.name)&token=$params.get("password.token")

$i18n.getText("template.user.created.lastshowlong", $params.get("password.hours"))

  ${baseurl}/secure/ForgotLoginDetails.jspa?username=$velocityhelper.urlencode($user.name)


#parse("templates/email/text/includes/userdetails.vm")

$i18n.getText("template.user.initiatedby", $initiatingUser.fullName, $initiatingUser.email)

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

Where can I add the constant text into this??? For instance: "Please enter after the first login..."

Can you please help?

Thanks in advance!

Rumi

1 answer

1 accepted

0 votes

That's a velocity file. You can actually just whack your static text straight into it, once you know where it's needed.

Think of velocity as a set of instructions for creating a block of text. As the server reads it, it does three things:

  1. If it finds something with $ in front of it, it looks to see if it's a variable or object that's been created in the page, or handed to it by the java behind it.
  2. If it finds something with # in front of it, it takes it as some form of processing instruction ("code" if you like"
  3. Anything else goes into the output text exactly as it's found

That's a completely non-technical and structurally inaccurate way to describe it. But it does actually describe what comes out.

Try belting in something like "Mr Flibble says 'Time to die'" on the second line - you'll see that come out, word-for-word on the second line of every email.

Hi Nic,

thanks!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,897 views 12 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot