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:
[{'attributes' => 'M','value' => 'With query search I want to list fields that don\'t have the attribute hidden set','name' => 'Summary','title' => 'Summary'},{'name' => 'ReportedBy','value' => 'Main.ArthurClemens','title' => 'ReportedBy','attributes' => 'M'},{'attributes' => '','name' => 'Codebase','value' => '1.1.3, trunk','title' => '
Codebase'},{'attributes' => '','title' => 'SVN Range','value' => '','name' => 'SVNRange'},{'attributes' => 'M','title' => 'AppliesTo','value' => 'Engine','name' => 'AppliesTo'},{'name' => 'Component','value' => 'Documentation','title' => 'Component','attributes' => ''},{'attributes' => 'M','title' => '
Priority','name' => 'Priority','value' => 'Low'},{'value' => 'Closed','name' => 'CurrentState'},{'title' => 'WaitingFor','name' => 'WaitingFor','value' => '','attributes' => ''},{'title' => 'Checkins','name' => 'Checkins','value' => '','attributes' => ''},{'attributes' => '','title' => 'TargetRelease','name' => 'TargetRelease','value' => 'patch'},{'attributes' => '','title' => 'ReleasedIn','name' => 'ReleasedIn','value' => '1.1.4'}]
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