Forums

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

Is there a way to generate a dynamic URL using Confluence page content?

Dave Lines December 9, 2020

Hi All,

I'd like to add a link to an external website on a Confluence page using info from the same page to populate the link. Here's my example:

1. I have a table on a Confluence page with some data.

2. I want to use data for a specific cell in that table to generate a link that looks something like this: example.com/[table data].

Anyone know how to do this?

Thanks in advance for sharing your knowledge.

-Dave

1 answer

2 votes
Katerina Kovriga _Stiltsoft_
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.
December 9, 2020 edited

Hi @Dave Lines ,

Our Table Filter and Charts for Confluence app and its Table Transformer macro from the version 6.3.0 provide a wiki markdown feature that covers your case.

Here we have a list of use cases collected from our customers (conditional formatting, changing alignment, adding statuses, etc.) and the last one is your case - how to create clickable links from multiple text pieces from Confluence tables put together.

Please check this abstract: here you'll find an example with step-by-step screenshots.

There we use two tables to create links, but for you case the SQL query will be even more simple:

Thu 2-1.png Thu 2-2.png SELECT T1.'Name', T1.'Phone Number', T1.'City',
FORMATWIKI("[" + CONCAT("https://example.com/", T1.'City') + "]") AS 'Workspace',
FORMATWIKI("[The link|" + CONCAT("https://example.com/", T1.'City') + "]") AS 'Workspace 2'
FROM T1

Thu 2-3.png Hope this helps your case.

Dave Lines December 10, 2020

Hi @Katerina Kovriga _Stiltsoft_ - thanks for your reply. It looks like your app would do what I need to do, but we just bought one app so we can't buy another one right now.

-DL

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events