# Projets

## Tableaux de bord par domaine

* [[TDB_PERSO]]
* [[TDB_PRO]]
* [[TDB_AMM]]

## Priorité haute

Total : ${#query[[
  from p = index.pages()
  where p.type == "project" and p.status != "closed" and p.urgence == "haute"
  order by p.univers
  select {
    REF = p.ref
  }
]]}

${query[[
  from p = index.pages()
  where p.type == "project" and p.status != "closed" and p.urgence == "haute"
  limit 20
  order by p.univers
  select {
    REF = "[[" .. p.ref .. "]]",
    DOMAIN = p.domain or '--',
    UNIVERS = p.univers or '--',
  }
]]}


## Priorité normale

Total : ${#query[[
  from p = index.pages()
  where p.type == "project" and p.status != "closed" and p.urgence == "normale"
  order by p.univers
  select {
    REF = p.ref
  }
]]}

${query[[
  from p = index.pages()
  where p.type == "project" and p.status != "closed" and p.urgence == "normale"
  limit 20
  order by p.univers
  select {
    REF = "[[" .. p.ref .. "]]",
    DOMAIN = p.domain or '--',
    UNIVERS = p.univers or '--',
  }
]]}


## Priorité basse

Total : ${#query[[
  from p = index.pages()
  where p.type == "project" and p.status != "closed" and p.urgence == "basse"
  order by p.univers
  select {
    REF = p.ref
  }
]]}

${query[[
  from p = index.pages()
  where p.type == "project" and p.status != "closed" and p.urgence == "basse"
  limit 20
  order by p.univers
  select {
    REF = "[[" .. p.ref .. "]]",
    DOMAIN = p.domain or '--',
    UNIVERS = p.univers or '--',
  }
]]}


## A archiver 

Total : ${#query[[
  from p = index.pages()
  where p.type == "project" and p.status == "closed"
  select {
    REF = p.ref
  }
]]}

${query[[
  from p = index.pages()
  where p.type == "project" and p.status == "closed"
  limit 20
  order by p.area
  select {
    REF = "[[" .. p.ref .. "]]",
    AREA = p.area
  }
]]}
