Hi,
Is possible to get the url of an issue in a jira post function?
I tried to create a String and insert the hyperlink but it doesen't work:
notificationMessage += "<li><a href=\""+issue.url+"\">"+issue.key+"</a></li>"
after, at the end of the postfunction I get the value of the String and I send an email with the string in the body, my need is that in the mail will appear the link of the issue
Thanks
The url for an issue is
<base url>/browse/<issue-key>
In your system, you've got a fixed known base url (https://something.atlassian.net) so you can hard code it and keep it simple.
In html, you just need to construct
<a href="https://something.atlassian.net/browse/<issue key>">
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.