Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Packages/Widgets/Charts] Tickets per quarter #1805

Open
jstanden opened this issue Jan 18, 2025 · 0 comments
Open

[Packages/Widgets/Charts] Tickets per quarter #1805

jstanden opened this issue Jan 18, 2025 · 0 comments

Comments

@jstanden
Copy link
Owner

This should be added to the workspace widget library:

{
    "widget": {
        "uid": "workspace_widget_tickets_per_quarter",
        "_context": "cerberusweb.contexts.workspace.widget",
        "label": "Tickets per quarter",
        "extension_id": "cerb.workspace.widget.chart.kata",
        "pos": 1,
        "width_units": 4,
        "zone": "content",
        "params": {
            "datasets_kata": "dataQuery/series0:\r\n  query@text:\r\n    type:worklist.subtotals\r\n    of:ticket\r\n    by.count:[created@quarter~20]\r\n    query:(created:\"today -3 years to now\")\r\n    format:categories",
            "placeholder_simulator_kata": "",
            "chart_kata": "data:\r\n  series:\r\n    series0:\r\n      x_key: label\r\n\r\naxis:\r\n  x:\r\n    type: category\r\n    categories@csv:\r\n      {{date_lerp(\"today -3 years to now\",\"quarter\",1)|map((ts) => ts|date('Y-\\Q') ~ (ts|date('m')/3))|join(',')}}\r\n    tick:\r\n      fit@bool: no\r\n      multiline@bool: no\r\n      rotate: -90"
        }
    }
}
@jstanden jstanden changed the title [Packages/Charts] Tickets per quarter [Packages/Widgets/Charts] Tickets per quarter Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant