Add Confluence Link when Creating JIRA via IFTTT

Rayman Bacchus
Contributor
September 24, 2024

 

This one should be easy, but I've spen over 3 hours on this trying to resolve.

I have an onModified IFTTT in Confiforms that is supposed to add a Confluence Page link when a certain Domain is selected.  I have the following command:

"description": "*[entry.InitiativeName.escapeJSON]* \n\n *Request Type:* [entry.RequestType.label] \n\n *Intake Reference Number:* [entry.IntakeNumber] \n\n *Intake Reference Link:* [entry.FraudPageId.formatLink(https://collaborate.td.com/pages/viewpage.action?pageId=)]

for some reason it is throwing an error: Could not prepare JSON:

I know it is the bolded piece that is creating the error because when I remove it the onModified works as expected.

Hoping someone can help me out with this and what my issue is as it is giving me migraines.

 

1 answer

1 accepted

2 votes
Answer accepted
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 24, 2024
[entry.FraudPageId.formatLink(https://collaborate.td.com/pages/viewpage.action?pageId=).escapeJSON]
Rayman Bacchus
Contributor
September 25, 2024

Hi Alex:

Your answer currently shows me this in the JIRA Page:

Confluence Page Link: <a href="https://collaborate.td.com/pages/viewpage.action?pageId=2633475262" target="_blank">2633475262</a> target="_blank">2633475262</a>

I was able to figure it out by adding a hidden field in my Form to capture the actualy Page Link, so the link works now:

Confluence Page Link: https://collaborate.td.com/pages/viewpage.action?pageId=2633475262

I was just hoping I could mask the hyperlink with text line "Here"

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 25, 2024

Does your field in Jira is actually capable of rendering a HTML?

Maybe you need to pass the wiki markup?

[[entry.FraudPageId.prepend(https://collaborate.td.com/pages/viewpage.action?pageId=).escapeJSON]]
Rayman Bacchus
Contributor
September 25, 2024

Yes.  THe JIRA field is the Description field so it can render HTML.  The solution you provided does work, but it produces the same result as if I use 

*Confluence Page Link:* [entry.FraudPageLink].

I'll accept your answer and thank you as always.

 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 25, 2024

Unless you have changed that, but https://confluence.atlassian.com/adminjiraserver/configuring-renderers-938847270.html

The description field uses wiki renderer and therefore does not like the HTML contents and expects the wiki format

True that it can render a link (-like text) as a hyperlink

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events