SQL plugin possibilities

Hello!

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?

Regards,

Ella

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.

https://marketplace.atlassian.com/plugins/org.swift.confluence.run

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.

Cheers,

Adrien

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Goff-Dupont
Published 6 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

70 views 2 3
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