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

Hello,

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. http://jira1.mycompany.de:8080/browse/XXX-1374  and

b) one URL for external use by our clients, e.g. https://jira1.mycompany.de/browse/XXX-1374

How can I manage this?

Thanks in advanve,

Tobi

1 answer

This widget could not be displayed.

The easy part of this answer is the technical "how to change an email template" - https://confluence.atlassian.com/display/JIRA/Customizing+Email+Content

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.

Tobias

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. "https://jira1.mycompany.de/browse/"; 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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

196 views 3 0
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