Generating a custom URL with a paramter based on custom field.

Hello!

I've googled for hours now, but I don't find the answer to my questio or I am searching for the wrong keywords.

I'd like to generate a URL based on a custom field and show it later as <a href> on the issue details screen. The custom field is filled by hand with a number when creating an issue (a ticket-number of an external ticket system). 

Example "Create Issue"
Ticket Number: 12345 < Custom field

Example "Issue Details"
<a href="http://external-ticket-system.com/view/ticket/12345">Open Ticket in ABC</a>

How to do the magic? With JavaScript? Is there a special plug-in? Thank you for any help.

— Daniel

1 answer

0 vote

Hi Daniel,

I don't have any specific code but you may start by looking at ScriptRunner's scripted fields.  You can create a scripted field that returns a string as html or just a string that holds the value in the form you outlined in your  question.

You can find information about Scripted Fields in the Adaptavist Scripted Fields documentation.  Hopefully that helps you get started!

Cheers,

Branden

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...

816 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