createDashboardWidget Mutation
Creates a new dashboard widget with specified configuration. Common configurations by widget type:
- Chart Widgets (Bar/Line/Pie):
- Set chartType, XAxis, YAxis
- Configure grouping and aggregation
- Set up color schemes
- Use these types of widgets when asked to show something broken down by project, assignee, etc.
- List Widgets (Actions/Projects):
- Define filters (status, assignee, etc.)
- Set up sorting and grouping
- Configure display options
- When user asks to create a widget for all actions assigned to them, create a widget with type 'myActionsList'
- Use these types of widgets when asked to show something in a list format, like actions, projects, etc.
- Status Widgets:
- Specify project or goal
- Configure metrics to display
- Set up refresh intervals
- Custom Widgets:
- Set up embedded content
- Configure interactive elements
- Define data sources
When asked to show something over time, use binBy and binByDateRange parameters.
Arguments
#
dashboardId
containerId
overdueFilter
Filter for overdue actions. Used to include or exclude overdue actions. Example: {overdueFilter: 'includeOnly'}
completedDateRange
Date range filter for completed actions. Example: filter to last 3 months - { selectedOption: 'lastNMonths', amount: 3, timeUnit: 'month', timeDirection: 'last' }
Response
#
Returns DashboardWidget !.
Example
#
Previous
createDashboard
Next
createForm