Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SQL plugin possibilities

Ella Zīle September 2, 2013

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
Answer accepted
Davin Studer
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.
September 2, 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

Bob Swift OSS (Bob Swift Atlassian Apps)
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.
September 3, 2013

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

0 votes
Adrien Ragot 2
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.
November 6, 2013

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

0 votes
MuhammadU September 2, 2013

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

0 votes
hsuhailah
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.
September 2, 2013

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events