stable

Clone or download

Read-only

feat: WITH/WITHOUT CHILDREN

User can earch artifacts with/without children via TQL in tracker reports or in cross tracker search. * Find user stories that don't have children: `WITHOUT CHILDREN` * Find user stories that have children: `WITH CHILDREN` * Find user stories that have "artifact #123" as child: `WITH CHILDREN ARTIFACT = 123` * Find user stories that have children in task tracker: `WITH CHILDREN TRACKER = 'task'` `CHILDREN` has an alias `CHILD` so that user can use both depending on their preference/context. Example: `WITH CHILD ARTIFACT = 123` Part of story #32307: Search artifacts with/without children via TQL Change-Id: I44973524e75109af139f551164fb435f0188791d

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +4 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidTermCollectorVisitor.php +12 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/ArtifactLink/ChildrenFromWhereBuilder.php +140 −0 Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/ArtifactLink/ArtifactLinkFromWhereBuilder.php Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilderVisitor.php +18 −4 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +4 −2 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/writing-mode/tql-configuration.ts +6 −0 Go to diff View file
M plugins/crosstracker/tests/rest/CrossTracker/CrossTrackerTestExpertQueryTest.php +120 −0 Go to diff View file
M plugins/tracker/grammar/src/tql.pegjs +24 −0 Go to diff View file
M plugins/tracker/grammar/test_parser.php +1 −0 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/ExpertModePresenter.class.php +1 −1 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ChildrenArtifactCondition.php +35 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ChildrenCondition.php +37 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ChildrenConditionVisitor.php +44 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ChildrenTrackerCondition.php +35 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/TermVisitor.php +14 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/WithChildren.php +34 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/WithoutChildren.php +34 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Date/DateToEmptyStringTermException.php +12 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFields/FloatToEmptyStringTermException.php +12 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Integer/IntegerToEmptyStringTermException.php +12 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/ListFields/ListToEmptyStringTermException.php +12 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidTermCollectorVisitor.php +12 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/ArtifactLink/ChildrenFromWhereBuilder.php +136 −0 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/ArtifactLink/ArtifactLinkFromWhereBuilder.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilderVisitor.php +18 −4 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/SizeValidatorVisitor.php +12 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +2 −1 Go to diff View file
M plugins/tracker/scripts/lib/TQL-CodeMirror/src/configuration.ts +8 −2 Go to diff View file
M plugins/tracker/tests/rest/TQL/TQLTest.php +20 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/QueryBuilderVisitorTest.php +2 −1 Go to diff View file