-- Fetch all the Issues belonging to the Jira account
-- of a particular user.
SELECT *
FROM fiber.jira_issue
WHERE account_id = '{user.jira_id}'
-- Fetch all the Issues belonging to the Jira account
-- of a particular user.
SELECT *
FROM fiber.jira_issue
WHERE account_id = '{user.jira_id}'
Code
CREATE TABLE fiber.jira_issue (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
id TEXT,
pkey TEXT,
issuenum DOUBLE PRECISION,
project DOUBLE PRECISION,
reporter TEXT,
assignee TEXT,
creator TEXT,
issue_type TEXT,
summary TEXT,
description TEXT,
environment TEXT,
priority TEXT,
resolution TEXT,
issue_status TEXT,
created TIMESTAMP WITH TIME ZONE,
updated TIMESTAMP WITH TIME ZONE,
duedate TIMESTAMP WITH TIME ZONE,
resolution_date TIMESTAMP WITH TIME ZONE,
votes DOUBLE PRECISION,
watches DOUBLE PRECISION,
time_original_estimate DOUBLE PRECISION,
time_estimate DOUBLE PRECISION,
timespent DOUBLE PRECISION,
workflow_id TEXT,
security DOUBLE PRECISION,
fix_for DOUBLE PRECISION,
component DOUBLE PRECISION
)
CREATE TABLE fiber.jira_issue (
id TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
account_id TEXT,
id TEXT,
pkey TEXT,
issuenum DOUBLE PRECISION,
project DOUBLE PRECISION,
reporter TEXT,
assignee TEXT,
creator TEXT,
issue_type TEXT,
summary TEXT,
description TEXT,
environment TEXT,
priority TEXT,
resolution TEXT,
issue_status TEXT,
created TIMESTAMP WITH TIME ZONE,
updated TIMESTAMP WITH TIME ZONE,
duedate TIMESTAMP WITH TIME ZONE,
resolution_date TIMESTAMP WITH TIME ZONE,
votes DOUBLE PRECISION,
watches DOUBLE PRECISION,
time_original_estimate DOUBLE PRECISION,
time_estimate DOUBLE PRECISION,
timespent DOUBLE PRECISION,
workflow_id TEXT,
security DOUBLE PRECISION,
fix_for DOUBLE PRECISION,
component DOUBLE PRECISION
)
Model definition