How can I add 2 different URLs in mails sent by JIRA?


we re using JIRA 6.0.1 and I'd like to have in mails (e.g. on issue created)

a) one URL for internal use, e.g.  and

b) one URL for external use by our clients, e.g.

How can I manage this?

Thanks in advanve,


1 answer

0 votes

The easy part of this answer is the technical "how to change an email template" -

But, it won't work:

  • The email generated is a single block of text that is sent to multiple recipients.  It is not generated for each recipient, and the template does not "know" who it is going to.  So you can't construct an "if external user, use url1, else use url2" logic in it.
  • You can't run JIRA on two urls.  It has a "base url".  Everything refers to that.  Even if you manage to use a comprehensive alias or rewrite trick in your web-server, your users will quickly land on the base url, and you have to use the base url for certain stuff to work correctly 

Hi Nic,

thanks for the quick answer.

Without having read your link, 2 URLs in only 1 mail (template) would be fine for us.


Well, you can put two urls in, but one is functionally useless.

It half works, but not well - the integrations with systems (including some of JIRAs internal stuff) use the base url and rely on being on one single place, so if you access it from the "wrong" url, they fail.

Thanks Nic. For us the 2 URLs are really important, cause we have 2 different user groups to access the issue from inside the company or via plain web browser (and a .p12 certificate installed). So we used to have the 2 links in auto-mails, but lost it with an major upgrade. Since a don't have direct access to our (inhouse support hosted) jira instance i hace one more question: I can figure out that I simply could use - a param like $issue or %issuekey% (which resolves to e.g. "XXX-1374") in the vm-templates to add it just behind a - "hardcoded" url, e.g. ""; Am I right with that?

Yes, you'll have to hardcode the url that won't work properly. JIRA doesn't know anything about it and hence can't use it (same as your users really)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,306 views 5 11
Read article

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