|
|
| (2 intermediate revisions by 2 users not shown) |
| Line 2: |
Line 2: |
| {| style="width:100%" | | {| style="width:100%" |
| |- | | |- |
| | {{#tag:kpitile||value={{#neowiki_ask: | | | <neowiki_report format="kpitile" format-params='{"max":1,"label":"{{int:bs-qmdashboard-tile-expiring-soon}}","color-thresholds":"0:green|1:yellow|10:red","link":"{{canonicalurl:Special:QMDashboard|view=expiring-soon}}"}'> |
| [[Schema:Document control]]
| | { |
| [[Document control.Valid until::>{{#time:Y-m-d}}]]
| | "hasSubjects": [ "Document control" ], |
| [[Document control.Valid until::<={{#time:Y-m-d|+14 days}}]]
| | "conditions": [ |
| | format=count
| | { "property": "Document control>>Valid until", "operator": ">", "value": "{{#time:Y-m-d}}" }, |
| }}|max=1|label={{int:bs-qmdashboard-tile-expiring-soon}}|color-thresholds=0:green{{!}}1:yellow{{!}}10:red|link={{canonicalurl:Special:QMDashboard|view=expiring-soon}}}}
| | { "property": "Document control>>Valid until", "operator": "<=", "value": "{{#time:Y-m-d|+14 days}}" } |
| | {{#tag:kpitile||value={{#neowiki_ask:
| | ] |
| [[Schema:Document control]]
| | } |
| [[Document control.Owner::!+]]
| | </neowiki_report> |
| | format=count
| | | <neowiki_report format="kpitile" format-params='{"max":1,"label":"{{int:bs-qmdashboard-tile-without-owner}}","color-thresholds":"0:green|1:red","link":"{{canonicalurl:Special:QMDashboard|view=without-owner}}"}'> |
| }}|max=1|label={{int:bs-qmdashboard-tile-without-owner}}|color-thresholds=0:green{{!}}1:red|link={{canonicalurl:Special:QMDashboard|view=without-owner}}}}
| | { |
| | {{#tag:kpitile||value={{#neowiki_ask:
| | "hasSubjects": [ "Document control" ], |
| [[Schema:Document control]]
| | "conditions": [ |
| [[Document control.Valid until::!+]]
| | { "property": "Document control>>Owner", "operator": "IS NULL", "value": "" } |
| | format=count
| | ] |
| }}|max=1|label={{int:bs-qmdashboard-tile-without-validity-date}}|color-thresholds=0:green{{!}}1:red|link={{canonicalurl:Special:QMDashboard|view=without-validity-date}}}}
| | } |
| | {{#tag:kpitile||value={{#neowiki_ask:
| | </neowiki_report> |
| [[Schema:Document control]]
| | | <neowiki_report format="kpitile" format-params='{"max":1,"label":"{{int:bs-qmdashboard-tile-without-validity-date}}","color-thresholds":"0:green|1:red","link":"{{canonicalurl:Special:QMDashboard|view=without-validity-date}}"}'> |
| [[qm_state_raw::first-unstable]]
| | { |
| | format=count
| | "hasSubjects": [ "Document control" ], |
| }}|max=1|label={{int:bs-qmdashboard-tile-without-approval}}|color-thresholds=0:green{{!}}1:red|link={{canonicalurl:Special:QMDashboard|view=without-approval}}}}
| | "conditions": [ |
| | {{#tag:kpitile||value={{#neowiki_ask:
| | { "property": "Document control>>Valid until", "operator": "IS NULL", "value": "" } |
| [[Schema:Document control]]
| | ] |
| [[Document control.Valid until::<={{#time:Y-m-d}}]]
| | } |
| | format=count
| | </neowiki_report> |
| }}|max=1|label={{int:bs-qmdashboard-tile-expired}}|color-thresholds=0:green{{!}}1:red|link={{canonicalurl:Special:QMDashboard|view=expired}}}}
| | | <neowiki_report format="kpitile" format-params='{"max":1,"label":"{{int:bs-qmdashboard-tile-without-approval}}","color-thresholds":"0:green|1:red","link":"{{canonicalurl:Special:QMDashboard|view=without-approval}}"}'> |
| |}
| | { |
| | | "hasSubjects": [ "Document control" ], |
| {{#neowiki_ask:
| | "conditions": [ |
| [[Schema:Document control]]
| | { "property": "qm_state_raw", "operator": "=", "value": "first-unstable" } |
| | ?Document control.Document ID = Document ID
| | ] |
| | ?Document control.Document type = Document type
| | } |
| | ?Document control.Owner = Document owner
| | </neowiki_report> |
| | ?qm_state = Approval state
| | | <neowiki_report format="kpitile" format-params='{"max":1,"label":"{{int:bs-qmdashboard-tile-expired}}","color-thresholds":"0:green|1:red","link":"{{canonicalurl:Special:QMDashboard|view=expired}}"}'> |
| | ?qm_has_draft = Has draft
| | { |
| | ?read_confirmation/pending_count = Pending read confirmations
| | "hasSubjects": [ "Document control" ], |
| | ?workflows/count = Number of running workflows
| | "conditions": [ |
| | ?Document control.Valid until = Valid until
| | { "property": "Document control>>Valid until", "operator": "<=", "value": "{{#time:Y-m-d}}" } |
| | format = grid
| | ] |
| | mainlabel = Document name
| | } |
| | sort = Document control.Valid until
| | </neowiki_report> |
| | order = asc
| |
| }}
| |
| </div>
| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| {{#vardefine:ExpiringSoon|
| |
| {{#neowiki_query:
| |
| {
| |
| "conditions": [
| |
| {
| |
| "property": "Document Control.Valid until",
| |
| "operator": ">",
| |
| "value": "{{#time:Y-m-d}}"
| |
| },
| |
| {
| |
| "property": "Document Control.Valid until",
| |
| "operator": "<=",
| |
| "value": "{{#time:Y-m-d|+14 days}}"
| |
| }
| |
| ]
| |
| }
| |
| |format="count"
| |
| }}
| |
| }}
| |
| {{#vardefine:NoOwner|
| |
| {{#neowiki_query:
| |
| {
| |
| "conditions": [
| |
| {
| |
| "property": "Document Control.Owner",
| |
| "operator": "IS NULL",
| |
| "value": ""
| |
| }
| |
| ]
| |
| }
| |
| |format="count"
| |
| }}
| |
| }}
| |
| {{#vardefine:NoExpiration| | |
| {{#neowiki_query:
| |
| {
| |
| "conditions": [
| |
| {
| |
| "property": "Document Control.Valid until",
| |
| "operator": "IS NULL",
| |
| "value": ""
| |
| }
| |
| ]
| |
| }
| |
| |format="count"
| |
| }}
| |
| }}
| |
| {{#vardefine:Expired|
| |
| {{#neowiki_query:
| |
| {
| |
| "conditions": [
| |
| {
| |
| "property": "Document Control.Valid until",
| |
| "operator": "<=",
| |
| "value": "{{#time:Y-m-d}}"
| |
| }
| |
| ]
| |
| }
| |
| |format="count"
| |
| }}
| |
| }}
| |
| {{#vardefine:FirstDrafts|
| |
| {{#neowiki_query:
| |
| {
| |
| "conditions": [
| |
| {
| |
| "property": "qm/state_raw",
| |
| "operator": "=",
| |
| "value": "first-unstable"
| |
| }
| |
| ],
| |
| "hasSubjects": [ "Document Control" ]
| |
| }
| |
| |format="count"
| |
| }}
| |
| }}
| |
| | |
| {| style="width:100%"
| |
| |-
| |
| | <kpitile value="{{#var:ExpiringSoon}}" max="1" label="Expiring soon" color-thresholds="0:green|10:red" />
| |
| | <kpitile value="{{#var:NoOwner}}" max="1" label="Without owner" color-thresholds="0:green|1:red" />
| |
| | <kpitile value="{{#var:NoExpiration}}" max="1" label="Without validity date" color-thresholds="0:green|1:red" />
| |
| | <kpitile value="{{#var:FirstDrafts}}" max="1" label="Without approval" color-thresholds="0:green|10:red" />
| |
| | <kpitile value="{{#var:Expired}}" max="1" label="Expired pages" color-thresholds="0:green|1:red"/>
| |
| |} | | |} |
|
| |
|
| <neowiki_report format="grid"> | | <neowiki_report format="grid"> |
| {
| | { |
| "properties": {
| | "hasSubjects": [ "Document control" ], |
| "Document Control.Document ID": "Document ID",
| | "properties": { |
| "Document Control.Owner": "Document owner",
| | "Document control>>Document ID": "Document ID", |
| "qm/state": "Approval state",
| | "Document control>>Document type": "Document type", |
| "qm/has_draft": "Has draft",
| | "Document control>>Owner": "Document owner", |
| "read_confirmation/pending_count": "Pending read confirmations",
| | "qm_state": "Approval state", |
| "workflows/count": "Number of running workflows",
| | "qm_has_draft": "Has draft", |
| "Document Control.Valid until": "Valid until"
| | "read_confirmation/pending_count": "Pending read confirmations", |
| },
| | "workflows/count": "Number of running workflows", |
| "conditions": [],
| | "Document control>>Valid until": "Valid until" |
| "sort": [ {
| | }, |
| "property": "name",
| | "sort": [ |
| "direction": "ASC"
| | { "property": "Document control>>Valid until", "direction": "ASC" } |
| } ],
| | ], |
| "hasSubjects": [ "Document Control" ],
| | "mainLabel": "Document name" |
| "mainLabel": "Document name"
| | } |
| }
| |
| </neowiki_report> | | </neowiki_report> |
| | </div> |