Forums

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

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
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
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events