I am trying as noob to create a script with Script Runner that make a custom web url..
- Creating a new Script Fielfd
- Template HTML
- Inline script is creating the correct web url BUT I am not able to click on the link.
def caseURL = baseURL + caseNumber
return caseURL
Am I missing som tags to make it clickable?
And how to make the link open in a new browser tab?
thnx in advance
Hello,
You should have something like this for your script:
def link = "<a target='_blank' href='http://google.com'>Google</a>"
return link
That will just create a link that opens the Google home page in a new tab. The "target='_blank'" portion will cause it to open in a new tab. You can add in your baseUrl and issue key to build the URL using ${baseUrl} or ${issue.key}.
This community question might help you out a bit also.
If you need further help getting this to work, send me the code you have and I'll help you out from there. :)
Jenna
Hi Jenna,
Thnx .. that solved my problem
This line solved it :)
def link = "<a target='_blank' href='" + baseURL + caseNumber + "'>" + baseURL + caseNumber + "</a>"
return link
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.