As Dirk mentioned, above code is to retrieve the link (and make it clickable) from attached Confluence pages in a ticket. I would like to do the same for attached form in tickets.
I got the syntax from Import wiki page link into eazybi, where @gerda.grantina did this explanation.