Item8912: WORKFLOWSTATE Problem
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
--
PhilipParsons - 15 Apr 2010
I'm trying to look for documents with a Withdrawn status, but the %WORKFLOWSTATE% is returning UNDERREVISION. Am I doing something wrong? Plugin version 4752. Please see code in raw view.
Thanks.
<!--
* Set WORKFLOW = ReferenceApprovalWorkflow
-->
| *WikiName* | *Title* | *Category* | *Reviewer* | *User* | *State* | *Comment* |
%SEARCH{"META:WORKFLOW.name='WITHDRAWN'" type="query" nosearch="on" format="|[[$topic]] | $formfield(Title) | $formfield(TopicCategory) | $formfield(Reviewer) | $formfield(User) | $percntWORKFLOWSTATE$percnt | $formfield(Comment) | "}%
Your WORKFLOWSTATE call doesn't specify the topic to get the workflow state from. It will return the state of the current topic (the topic where the search is executed). Use
$percntWORKFLOWSTATE{$topic}$percnt
Not a bug. No action.
--
CrawfordCurrie - 20 May 2010