Is it possible to have the count of nodes in each states of a workflow in a view?

Comments

johnv’s picture

Priority: Critical » Normal

There is a count if you check the states list of the workflow on the config pages.
But it is not in Views.

johnv’s picture

Version: 7.x-1.1 » 7.x-2.x-dev
Component: Features » Views

In #2065799: Count Nodes by WorkflowState a new function WorkflowState->count() is added.
This can be used to open up in Views. Patches are welcome.

johnv’s picture

Category: Support request » Feature request

Changing to Feature request, since it is not possible ATM.

johnv’s picture

Title: Count of nodes in each states in workflow. » Add "Count of nodes" per state in workflow_views.
Status: Active » Fixed

This is committed in 7.x-2.x here.

When you add a State as a field to your view, you can now choose the following 'formatters':
- state name;
- state id;
- count number of nodes with this state;

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.