# Backlog

## En retard

${query[[
  from p = index.tasks()
  where not p.done and ((p.planned and p.planned < date.today()) or (p.date and p.date < date.today())) and not table.includes(p.tags, 'event')
  order by p.planned asc
  select {
    REF = '[[' .. p.ref .. ']]',
    PLAN = p.planned or '--',
    DATE = p.date or '--',
    STATE = p.state,
    TEXTE = p.text
  }
]]}


## Non planifié

${query[[
  from p = index.tasks()
  where not p.done and not p.planned and not p.completed and not p.date and not table.includes(p.tags, 'event')
  order by p.text asc
  limit 10
  select {
    REF = '[[' .. p.ref .. ']]',
    STATE = p.state,
    TEXTE = p.text
  }
]]}


