How can I fill a URL field (or Confluence link) from a custom field?


This is about OnDemand/Cloud – I know there are multiple solutions for hosted JIRA instances. I tried all OnDemand addons I could find (enabled them all) but couldn't find anything allowing programmatic (or even regex-based) value transformations.


I need to create a link to Confluence (so either an internal Confluence reference or a URL will be fine) based on the value of a custom dropdown field.

Ideally there would be a map from the selected value to a Wiki page so I have total freedom about the location of the target pages but I could make it work if I could just prefix the value with the base URL and apply a simple search&replace to the value so, for example, value 'Foo Bar' would be prefixed with '', the value would be URL encoded (rough search/replace would do) to form the URL of


I don't mind the actual solution – whether it's a map, a regex, some javascript/groovy code or anything else at all; either autoupdate field or a post function will do.


How can I do that?




1 answer

1 accepted

This widget could not be displayed.

This sort of programmatic function isn't available for JIRA Cloud. Scripting is a restricted function, and the add-ons currently available for Cloud don't provide a related functionality.

Creating the links automatically based on a Custom Field would only be possible in a JIRA Server installation.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

601 views 26 15
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