Been trying to figure this out for several days now... I'd like to create view showing list of workflow log or comment history with workflow field api.
I am unable to retrieve workflow log or comments history to show up in neither views or panels. I tried using different combinations of entity type and tokens: entityform submissions, transitions, and even tried contents... nothing works.
I am able to get rendered workflow widget (change status and add comment) to show up as field but I want to pull only workflow history showing log of comments as seen under workflow history tab below the widget.
Anyone could give me some ideas or direction on how to achieve this?
I totally love using workflow field api on entities (not nodes) and am very very grateful for johnv putting lots of work into this module! I have been waiting for this feature for long time since entityform first came out little over a year ago :D
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | workflow_transitions_default.txt | 6.27 KB | dat deaf drupaler |
Comments
Comment #1
johnvIf you are using Nodes, you can create a 'content' view, and choose 'workflow history' fields.
When you are using other entity types, this is not supported yet. Patches are welcome!
Comment #2
johnvTranstions are now real entities with corresponding Views support.
This is done in #1559680: Make Transitions fieldable entities.
Patches are welcome for relationship support!
Comment #3
johnvDid you succeed in your mission?
Comment #4
dat deaf drupaler commentedAm using workflow field api together with entityform.. I have updated to beta12, yet still cannot find fields for workflow log or comments history via Views or Panels without going to workflow tab form?
Comment #5
johnvI'll try and provide you with a default view, but inthe mean time:
- did you enable workflow_views?
- try to create a new view, starting with 'transitions' as the entity
- use latest version beta12 or dev.
Comment #6
dat deaf drupaler commentedHere's export of view I made with workflow_executed_transitions_default
I am unable to set relationship for entities (entityform) to pull in workflow field data. Workflow node also not showing up in relationship.
Comment #7
rbrownellAny movement on this? I need this as well! I am second guessing my choice to use ECK because of problems like this.
Comment #8
rbrownellComment #9
rbrownellComment #10
johnvThis may be the same problem as: #2074859: Views displaying wrong data when using references/revisions/multiple fields and #2318575: Workflow filter sql error in field_collection views.
@dat deaf drupaler , please close this issue if you think one of the other issues is similar, and post your extra info over there.
Comment #11
johnvAs a work around, just create a view with base table {NODE}, and add fields for 'Workflow History'.
To show the workflow widget in the view, just add the field itself (not the 'Workflow current' equivalent) and set te formatter from Default to Workflow.
To fullfil this request, a 'relationship' is needed in workflow_views_views_data_alter().
Comment #12
johnvI guess the workaround is sufficient. Please reopen if this not suits you.
Try latest -dev-version or version 2.5 (when available)