How to add a link in Scandio Pocket Query results?

Hello,

I am creating some reports in pocket query and the result of this report is a weblink which I would like the user could click on and be directed to a confluence page, however, in pocket query the result appears as plain text only.

How can I configure this link to be "clickable"?

Thanks  a lot

Joao Flavio

2 answers

Hello,

did you find a way to do that?

Hello, 

Yes, I managed to create a HTML script as a Pocket Query template and it works very well.

This is the code I used:

<script>
## @Param colresizable:true
PocketQuery.template("default")
</script>

<table class="aui confluenceTable pocketquery-table">
<thead>
<tr>
#foreach ($column in $columns)
<th>$!column</th>
#end
</tr>
</thead>

<tbody>
#foreach ($row in $result)
<tr>
#foreach ($column in $row)
<td>$!column</td>
#end
</tr>
#end
</tbody>
</table>

 

Thanks for your attention

Best Regards

Thank you, but this script not worked for me.

Can you tell me what data is in your clickable table?

I used a different template, it's works.

<tbody>
#foreach ($row in $result)
<tr>
#foreach ($key in $row.keySet())
#if ($key == "link")
<td>
<a href="$row.Link">$row.get("title")</a>
</td>
#elseif($key != "title")
<td>$row.get($key)</td>
#end
#end
</tr>
#end
</tbody>

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,334 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you