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