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
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

474 views 19 9
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