Hi! I'm using JIRA 6.2.5
I'm trying to use formula, that makes url:
<!-- @@Formula: "http://mysite.ru/packet/view/" + issue.get("customfield_11019")
-->
but i've got 2 problems
1) url is not active (cant tap on it)
2) if customfield 11019 is empty - i get this http://mysite.ru/packet/view/null (i dont need any value if empty)
what i'm doing wrong?
1) you might try to return a valid html link (<a href=...)
2) you need to test your custom field value against null and return null then:
if (issue.get("customfield_11019") == null) return null;
{code}return "<a href=\"http://..."+issue.get(...)+"\">see details</a>"{code}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share where you placed this in your formula?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually your entire formula would be very helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Help - trying the same thing.
THIS WORKS:
<!-- @@Formula:
return "https://collaborate.mysite.com/display/EETSTSS/"+issue.get("customfield_14729");
-->
but, of course, is displayed as text and not a linkable URL
THIS DOESN'T WORK:
<!-- @@Formula:
return "<a href='https://collaborate.mysite.com/display/EETSTSS/"+issue.get(customfield_14729)+"'>Link here</a>";
-->
Nothing is displayed. (I tried \" characters instead of ' too).
I must be blind.... what am I doing wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your formulas are not visible. You need to use code blocks (last icon to the right) to paste your snippets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I'm having the same problem as Tim Thompson, does someone has the solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, this will not be possible until https://innovalog.atlassian.net/browse/JMCF-209 is resolved (in the upcoming JMCF 2.0). This is a limitation of Jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works!
My formula:
<!-- @@Formula:
return "<a href=\"https://..." + issue.get("issuekey") +"..."+"\">see details</a>"
-->
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.