Is it possible to create a URL in a page template where the last part comes from a variable?

Karin Kriebisch June 20, 2024

Hello,

I'm trying to create in Confluence Cloud a page template which should contain a button for a link to a customer assets page in Jira Service Management. As far as I understand I need to know the CMDB number of the customer project to choose the correct project-CMDB, which I ask when the template is used to create the page. So far, so good.

Target link: 
https://amisservices.atlassian.net/jira/servicedesk/assets/object/121
where the "121" is the given value of the variable.

Is there a way to create this link where the last part consists of a variable?

Even better would be when could query the url using the customer name.

Thanks in advance for any reaction.

Regards,

Karin Kriebisch

1 answer

0 votes
Humashankar VJ
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.
November 6, 2024

Hi @Karin Kriebisch 

To create a dynamic URL in a Confluence Cloud page template, you can utilize a variable for the last part of the URL. Start by creating a variable in your page template to store the CMDB number. This can be done using the /variable macro.

For instance, you can name the variable "CMDBNumber" and set its type to Text. This variable will then hold the value that will be appended to the URL.

For more hep refer the post - Using /variables in page templates and pages does ...

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events