Site:QMDashboard: Difference between revisions

Autogenerated
 
Autogenerated
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:ExpiringSoon|
<div class="ext-galaxy-dashboard">
    {{#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%"
{| style="width:100%"
|-
|-
| <kpitile value="{{#var:ExpiringSoon}}" max="1" label="Expiring soon" color-thresholds="0:green|10:red" />
| <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}}"}'>
| <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" />
"hasSubjects": [ "Document control" ],
| <kpitile value="{{#var:FirstDrafts}}" max="1" label="Without approval" color-thresholds="0:green|10:red" />
"conditions": [
| <kpitile value="{{#var:Expired}}" max="1" label="Expired pages" color-thresholds="0:green|1:red"/>
{ "property": "Document control>>Valid until", "operator": ">", "value": "{{#time:Y-m-d}}" },
{ "property": "Document control>>Valid until", "operator": "<=", "value": "{{#time:Y-m-d|+14 days}}" }
]
}
</neowiki_report>
| <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}}"}'>
{
"hasSubjects": [ "Document control" ],
"conditions": [
{ "property": "Document control>>Owner", "operator": "IS NULL", "value": "" }
]
}
</neowiki_report>
| <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}}"}'>
{
"hasSubjects": [ "Document control" ],
"conditions": [
{ "property": "Document control>>Valid until", "operator": "IS NULL", "value": "" }
]
}
</neowiki_report>
| <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" ],
"conditions": [
{ "property": "qm_state_raw", "operator": "=", "value": "first-unstable" }
]
}
</neowiki_report>
| <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}}"}'>
{
"hasSubjects": [ "Document control" ],
"conditions": [
{ "property": "Document control>>Valid until", "operator": "<=", "value": "{{#time:Y-m-d}}" }
]
}
</neowiki_report>
|}
|}


<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>

Latest revision as of 04:58, 3 November 2026