How can I define SQL query with external pararameter

Agnieszka Kleczko
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 21, 2015

I'm using SQL Query for Confluence. I'd like to define report that will have input text as parameter for SQL query. Is this possible ? How can I do that ?

1 answer

1 accepted

0 votes
Answer accepted
Bob Swift (personal)
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.
July 21, 2015

You can use Run Self-Service Reports for Confluence macros to put up a form with a parameter that can drive the SQL-query Macro. Here is a simple example: Run example.

Derek Broughton July 14, 2020

That's quite disappointing. Your documentation tells me I can use a true SQL Parameter (ie, with ? ), but every example on the page you reference here is open to SQL injection attacks, and I can't find anything in the SQL-query documentation that combines SQL parameters with Self-service Reports.

Like Christian Koch likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events