Item10895: With query search I want to list fields that don't have the attribute hidden set
Priority: Low
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: Documentation
Branches:
To my surprise I cannot search attr
on form fields (as I can with attachments attr
).
It is possible, see:
%QUERY{"fields[NOT lc(attributes)=~'h']"}%
...
Try:
%QUERY{"fields[NOT lc(attributes)=~'h'].name"}%
... creates:
[{'value' => 'With query search I want to list fields that don\'t have the attribute hidden set','name' => 'Summary','attributes' => 'M','title' => 'Summary'},{'value' => 'Main.ArthurClemens','name' => 'ReportedBy','attributes' => 'M','title' => 'ReportedBy'},{'value' => '1.1.3, trunk','name' => 'Codebase','attributes' => '','title' => '
Codebase'},{'name' => 'SVNRange','attributes' => '','title' => 'SVN Range','value' => ''},{'value' => 'Engine','attributes' => 'M','title' => 'AppliesTo','name' => 'AppliesTo'},{'value' => 'Documentation','name' => 'Component','attributes' => '','title' => 'Component'},{'value' => 'Low','attributes' => 'M','title' => '
Priority','name' => 'Priority'},{'name' => 'CurrentState','value' => 'Closed'},{'title' => 'WaitingFor','attributes' => '','name' => 'WaitingFor','value' => ''},{'name' => 'Checkins','attributes' => '','title' => 'Checkins','value' => ''},{'value' => 'patch','title' => 'TargetRelease','attributes' => '','name' => 'TargetRelease'},{'value' => '1.1.4','name' => 'ReleasedIn','attributes' => '','title' => 'ReleasedIn'}]
Try:
Summary,ReportedBy,Codebase,SVNRange,AppliesTo,Component,Priority,CurrentState,WaitingFor,Checkins,TargetRelease,ReleasedIn
(doesn't work on f.o. but works on release 1.3).
Added documentation.
--
ArthurClemens - 17 Jun 2011