---
command: Shizendo Project
description: Shinzendo page template to create a new project
key: "Ctrl-Alt-p"
suggestedName: "03_PROJETS/Projet"
confirmName: true
tags: meta/template/page
priority: 100
frontmatter: |
  type: project
  tags: project
  univers: PRO
  title:
  aliases: [""]
  axe: "PILOTAGE"          # Libre, enrichi au fil de l'eau
  referent: [[RYCKELYNCK_Guillaume]]
  appui: ""
  status: "active"     # Options: active, in-progress, closed, draft
  urgence: "normale"   # Options: haute, normale, basse
  start: "[[01_JOURNAL/${os.date('%Y')}/${os.date('%Y-%m-%d')}]]"
  end: ""
  review: ""
---
# |^|

## Todo

### Urgent

{query[[
  from t = index.tasks('URGENT')
  where t.done == false 
    and table.includes(t.links, _CTX.currentPage.name)
  order by t.lastModified desc 
  limit 10
  select {
    REF = "[[" .. t.ref .. "]]",
    TEXT =  t.text,
    TAGS = t.tags
  }
]]}

### Next

{query[[
  from t = index.tasks('next')
  where t.done == false 
    and table.includes(t.links, _CTX.currentPage.name)
  order by t.lastModified desc 
  limit 10
  select {
    REF = "[[" .. t.ref .. "]]",
    TEXT =  t.text,
    TAGS = t.tags
  }
]]}

### Other

{query[[
  from t = index.tasks()
  where t.done == false 
    and table.includes(t.links, _CTX.currentPage.name)
    and not table.includes(t.tags, 'URGENT')
    and not table.includes(t.tags, 'next')
    and not table.includes(t.tags, 'event')
  order by t.lastModified desc 
  limit 10
  select {
    REF = "[[" .. t.ref .. "]]",
    TEXT =  t.text,
    TAGS = t.tags
  }
]]}


## Evénements

### A venir

{query[[
  from t = index.tasks('event')
  where not t.done
    and table.includes(t.links, _CTX.currentPage.name)
  order by t.lastModified desc 
  limit 10
  select {
    REF = "[[" .. t.ref .. "]]",
    TEXT =  t.text,
    TAGS = t.tags
  }
]]}


### A traiter

{query[[
  from o = index.tag "header" 
  where table.includes(o.tags, "event")
    and string.find(string.gsub(o.name, '%-', '_'), "%[%[" .. string.gsub(_CTX.currentPage.name, '%-', '_') .. "%]%]") 
  order by o.page desc 
  limit 10
  select {
    REF = "[[" .. o.ref .. "]]",
    NAME =  o.name
  }
]]}


## DONE

* 

{query[[
  from t = index.tasks()
  where t.done
    and table.includes(t.links, _CTX.currentPage.name)
  order by t.lastModified desc 
  limit 10
  select {
    REF = "[[" .. t.ref .. "]]",
    TEXT =  t.text,
    TAGS = t.tags
  }
]]}

