select
null item_classes,
null selection,
case t.status
when 'Open' then 'fa fa-lg fa-exclamation-circle-o'
when 'Closed' then 'fa fa-lg fa-check-circle u-success-text'
when 'On-Hold' then 'fa fa-lg fa-minus-circle u-danger-text'
when 'Pending' then 'fa fa-lg fa-exclamation-triangle u-warning-text'
end icon_class,
null icon_html,
t.task_name title,
'Project: ' || p.project description,
t.status misc,
null actions
from
eba_ut_chart_tasks t,
eba_ut_chart_projects p
where
t.project = p.id
order by p.created