Jira 5 Rest API, manage email template to change Jira link to custom application link

Hi,

I am using rest api, to manage jira issue from my application(xyz.com). I would like to know, is there any way, by which I can change links to redirect to my application xyz.com, rather than Jira link.

Thanks,

2 answers

1 accepted

0 vote

I'm not sure what the question is here, as I'm not at all clear on what you're trying to do.

I can try to explain some stuff that might help. Jira sends emails out. These link back to Jira, as they are about Jira issues. Jira has a "base url", which is set to the root of where you want to land when clicking on a link in the emails. You can change that if you want, but it will break some stuff if it is not set to the correct root of Jira.

I think I need help understanding - where are you seeing these urls that you want to change? Why do you want to change them to your application, when they are about Jira issues?

Thanks for your feedback.

Actually, I have a portal, and user has option to raise ticket. I am using JIRA for ticket management,

I have used Jira REST API, for creating and managing issue from my app itself. So in other words, a user can raise issue from my app, rather than from Jira interface.

I am seeing Jira URL's in notification mail being sent to user, I want Jira app URL to be replaced by my URL's.

I hope, I am clear, if you need any other information, please do let me know.

Thanks,

Yes, that's cleared it up I think. Sorry I didn't get it the first time.

The short answer is a simple "no". The reason is partly what I wrote before - Jira uses the base url in the emails and if you change that to point at your portal instead of Jira, then people and systems integration will land on the portal instead of Jira (This could actually break your REST stuff as well). So I'd rule out a change of base url completely.

But, yes, you could customise *just* your emails. See https://confluence.atlassian.com/display/JIRA/Customising+Email+Content - this talks about adding custom fields and rearranging stuff, but your requirement is a little different - you'll want to look for and replace anywhere it uses "base url" in the body of the email.

There is one gotcha here - ALL your outgoing emails will point at the portal. If I were inside your organisation and using Jira as a developer, I'd be immensely frustrated that emails were pointing to the wrong place - they really should point at Jira. I don't know your organisation or usage of course, so that's a human thing you'll need to consider.

Thanks for your feedback.

Actually, I have a portal, and user has option to raise ticket. I am using JIRA for ticket management,

I have used Jira REST API, for creating and managing issue from my app itself. So in other words, a user can raise issue from my app, rather than from Jira interface.

I am seeing Jira URL's in notification mail being sent to user, I want Jira app URL to be replaced by my URL's.

I hope, I am clear, if you need any other information, please do let me know.

Thanks,

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

770 views 2 19
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