SQL plugin possibilities


Can You please tell me, if a company has the SQL plugin can this plugin display different results from an SQL query for each emploee individually. For example, specific emploee can see how much unresolved tasks he has in a Horizon system?



4 answers

1 accepted

2 votes
Accepted answer
Davin Studer Community Champion Sep 02, 2013

Not using just the SQL plugin. You can supply static parameters to a query, but not dynamic ones that change based on who is accessing the page.

However, if you combine it with the Run plugin you can get this dynamic functionality.


And specifically for this case, the $current_user_id pre-defined variable is available - see Pre-defined variables .

This should be possible depending on how you design the query and the way the results are being presented. You may want to check out SQL Plugin and work with your DB Admin who is familiar with those queries and construct them accordingly.

I have used this plugin extensively and find it very useful. But you have to be an expert in sql.

Hi Ella,

You can do this using the Play SQL Base add-on, and it is free:

- Write a query

- Use the built-in parameter $userName in your query

See PLAYSQL-10 for details on how it works. Contact me (or write on Answers) if there's any difficulty.



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

130 views 3 4
Join discussion

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