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 to display SQL records on textfield (RUN + SQL macro)

Hi,

I'm using https://bobswift.atlassian.net/wiki/display/RUN/Run+macro + https://marketplace.atlassian.com/plugins/org.swift.confluence.sql developed by Bob Swift, and I'm able to easily add/insert records using a form I've created on my Confluence page.

Now I'm wondering how I can dynamically delete my records. I'd like to get a "select" with all my db entries pre populated.

Ex: Select value will be something like : select user where project="project1"

This example will allow me to easily remove users from a specific project.

1 answer

1 accepted

If I understand your question correctly, you could add a column on the select that links to a remove page that gets prefilled with the key from the list row. Either as a confirm screen or auto-run. You will need to link back to the list screen. You could also do something similar on the same page. It an advanced example, but How to do SQL database operations on lists of data has some of the techniques.

I followed the guide last week... didn't work. Perhaps I was a bit confused with all the feature yours plugins provides (currently using a mix of sql/run and groovy..);)

Nevermind, after 1 week off, I re-tested your code and it work perfectly on mysql (just need to adjust some queries)

Thanks a lot

Suggest an answer

Log in or Sign up to answer
TAGS
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...

272 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