GETTING STARTED

Quick start

Create a table, run a query and add its results to a Confluence page.

1. Open Studio

Ask your Atlassian administrator to install Simple DB for the product you use. Open Simple DB from Apps in Confluence or Jira, then go to Studio. Your account needs access to the app.

Choose New SQL editor, or use + in the tab bar. Run each statement below separately with Run. The example creates a new table named help_tasks; use another name throughout if that table already exists.

2. Create a table

Run this statement to create three columns. The id column is the primary key: each row must have a different ID.

CREATE TABLE help_tasks (
  id INT NOT NULL PRIMARY KEY,
  title VARCHAR(200) NOT NULL,
  status VARCHAR(20) NOT NULL
);

3. Add a row

Run this statement once to insert a sample task. Running it again with the same ID will fail because the primary key must be unique.

INSERT INTO help_tasks (id, title, status)
VALUES (1, 'Review onboarding', 'Open');

4. Read your data

Run this query. The results should contain one row: ID 1, title Review onboarding and status Open.

SELECT id, title, status
FROM help_tasks
WHERE status = 'Open'
ORDER BY id
LIMIT 20;

5. Keep the query

Save the SELECT as a named query using the editor's save action. It will appear under Queries in the browser, ready to reopen or use as an embed source.

Before sharing results, review access to the saved query and the data it reads. Follow the publishing guide to place the result on a page or issue.