ConfiForm converting page/blogpost to html correctly

Maximilian Herbert October 24, 2023

Hey there,

 

I hope someone did resolve this:

I have a Form (ConfiForm) that creates a subpage when submitted and saves the page back in the record. For that I created a field with the type page/blogpost.

 

Additionally a Jira Issue gets created (IFTTT Macro) with the information out of the record

In the form I have the field "name" which gives the Jira issue and the subpage its names.

Now in the Jira Issue description I want to insert the Link to the created Subpage so you can just navigate from the Jira Issue to the Subpage quicker. Did this by adressing 

[asLink([entry.record.escapeJSON])]

in the IFTTT Body within the JSON

 

 
The problem is: if the name contains any special symbols / spaces the link wont get displayed correctly. I tried every asLink() function but they dont seem to resolve that problem. Is there any kind of trick I can do so the link gets converted to a html ready link where spaces and special symbols get correctly replaced?


Greetings Max 

 

 

 

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
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.
October 24, 2023

Hi @Maximilian Herbert 

You can get any property from a Page object that it defines, including urlPath, for example... or the page id

[entry.pagefield.urlPath.prepend(https://yourconfluence).asLink]

or something like

[entry.pagefield.id.prepend(https://yourconfluence/pages/viewpage.action?pageId=).asLink]

Alex

Maximilian Herbert October 26, 2023

Thanks Alex! This helped a lot!

Worked perfectly fine :) 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events