Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Max
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2015

Hi!

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 'https://blah.atlassian.net/wiki/display/ABC/', the value would be URL encoded (rough search/replace would do) to form the URL of https://blah.atlassian.net/wiki/display/ABC/Foo+Bar.

 

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?

 

Thanks,

Max

1 answer

1 accepted

1 vote
Answer accepted
Dobroslawa Wierzbicka
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2015

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.

Max
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2015

Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team ’25 europe guide, teamwork collection, atlassian events, conference guide, team culture, collaboration tools, ai in teamwork, atlassian learning, event schedule, keynote previews, community events

Must attend events for Team Europe '25!

Make the most of your time in Barcelona with our curated guide – discover how Jira, Confluence, Loom, and Rovo work better together, connect with Atlassian experts, and enter to win an Apple prize bundle!

Get the guide
AUG Leaders

Atlassian Community Events