Forums

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

After submitting ConfiForm to create JIRA Ticket, add url of JIRA ticket to email

Lithogen July 30, 2021

Hi Atlassian community,

 

I am having trouble trying to add the URL of the created JIRA ticket to an email after a Confiform has been submitted.

 

The form works fine, the JIRA ticket is successfully created and the email is sent with no problems.  However I can't get the URL to show up properly.

 

I've tried:
<a href="https://jira.com/browse/${iftttResult_0}">https://jira.com/browse/${iftttResult_0}</a>

Which doesn't work, in the email it shows up as a raw string.

 

Any help would be much appreciated

1 answer

1 vote
Alex Medved _ConfiForms_
Community Champion
July 30, 2021

Links in Confluence pages, especially dynamically constructed links, are quite tricky to do.

As Confluence wants to be able to know what the link is in order to understand if that should be updated on certain scenarios and also to count incoming/outgoing links to the page

The easiest way to achieve what you need is to use HTML macro and place your link there.

As what happens now is that the link you put gets escaped really and does not look like a link anymore when placed directly into the editor

Lithogen August 2, 2021

Thank you for your reply.

I've tried putting the above code snippet of mine into an HTML Comment macro and it does not show up as a URL, just the literal string again.

If I put  ${iftttResult_0} by itself, it will show XYZ-123 as expected, which is the key of the JIRA Ticket.

I'm stumped at how to concatenate these two strings (base url + jira ticket key) and potentially make it a clickable link.

Alex Medved _ConfiForms_
Community Champion
August 2, 2021

What is "HTML Comment" macro?

Lithogen August 3, 2021

It's one of the macros that show up in the macro browser when I search "html".

 

The docs point to html comment macro 

Some other things that show up when searching "html" are "confiforms cleanview", "confiforms plainview", and "html-bobswift".

 

Sorry I'm fairly new when it comes to using ConfiForms

Alex Medved _ConfiForms_
Community Champion
August 3, 2021

Could you try to use “html” macro? I have no idea what a “html comment” macro is and where/when to use it

 

to be clear - html macro is not part of ConfiForms, and we really trying to solve here a dynamic link problem… not really something very specific to ConfiForms

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events