Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Anyone out there used a groovy base url in an email post function? Or is there an easier way to link to the issue
I want to use Base URL so that when I promote changes from environment to environment I don't have to change the uatjira/devjira/jira part of the URL.
What I have is this:
<code>
Click the link below to open the work request in Jira.<br>
<a href="<% ComponentAccessor.getApplicationProperties().getString("jira.baseurl") %>"/browse/${issue.key}>${issue.key}</a>
</code
I must be missing something easier!!!!
How about using:
issue.url
This is part of JMWE's simplified API, and it's visible on the "Issue Methods" help tab (in the "Others" section).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would this work for linking back to the original issue that was created?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what do you mean by "the original issue that was created"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @David Fischer
We have set up a post function that includes an email sent to the reporter when an issue is created. I was wondering how to insert the link to that created issue into the email that is sent to the reporter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The same way that was documented before. Just make sure you move the Email Issue post function to the bottom of the list of post functions on the Create transition.
Unless you're on Jira Cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are on jira data center. So i would just need to insert issue.url into that email?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
More specifically, ${issue.url} to insert the URL, but if you want to show the issue key and make it into a clickable link, you could do
<a href="${issue.url}">${issue.key}</a>
(in the HTML body)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.