It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How is it possible to implement a variable in my Sql Plugin?

Hi all,

probably it's simple but I want to implement variables in my SQL-String. I use the SQL Plugin.

For example:


Select * from test where test_id = $example

How is it possible?

1 answer

hi andreas,

i've never used sql-plugin and i really don't know exactly what you mean but by lookin at your example code $example would be empty unless it is defined with something like:

example=$1 (this would be the first argument)
example=$(put your code here)

once this variable is defined you should be able to call $example for your query

Hey there

and thanks for your answer. When you create a global template you can create textboxes by declaring a variable with the "$" sign.

So if you type something into the created textbox you can use the input text as a variable.

So my question is: "How can I use the text from the textbox as a variable in my sql string?"

Hope this makes clearer what I want to do.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

271 views 5 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you