Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New: New report column 'children' to list all direct children.

  • Loading branch information...
commit f2ff40e7f3450df0549917c89ed8cae228bac7ef 1 parent a39d026
@scrapper scrapper authored
View
18 lib/taskjuggler/PropertyTreeNode.rb
@@ -590,6 +590,24 @@ def checkFailsAndWarnings
end
end
+ def query_children(query)
+ list = []
+ kids.each do |property|
+ if query.listItem
+ rti = RichText.new(query.listItem, RTFHandlers.create(@project)).
+ generateIntermediateFormat
+ q = query.dup
+ q.property = property
+ rti.setQuery(q)
+ list << "<nowiki>#{rti.to_s}</nowiki>"
+ else
+ list << "<nowiki>#{property.name} (#{property.fullId})</nowiki>"
+ end
+ end
+
+ query.assignList(list)
+ end
+
def query_journal(query)
@project['journal'].to_rti(query)
end
View
44 lib/taskjuggler/TjpSyntaxRules.rb
@@ -3821,6 +3821,15 @@ def rule_reportableAttributes
EOT
)
+ singlePattern('_children')
+ descr(<<'EOT'
+A list of all direct sub elements.
+
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column|listtype]] attributes.
+EOT
+ )
+
singlePattern('_closedtasks')
descr(<<'EOT'
The number of sub-tasks (including the current task) that have been closed
@@ -3881,7 +3890,8 @@ def rule_reportableAttributes
descr(<<'EOT'
The resources that have this resource assigned as manager.
-The list can be customized by the [[listitem.column|listitem]] attribute.
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column|listtype]] attribute.
EOT
)
@@ -3923,9 +3933,10 @@ def rule_reportableAttributes
* '''<nowiki>]->]</nowiki>''': End-to-End dependency
* '''<nowiki>[->]</nowiki>''': Start-to-End dependency
-The list can be customized by the [[listitem.column|listitem]] attribute.
-The dependency symbol can be generated via the ''''dependency'''' attribute
-inthe query, the target date via the ''''date'''' attribute.
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column]] attributes. The dependency symbol can be generated via
+the ''''dependency'''' attribute inthe query, the target date via the
+''''date'''' attribute.
EOT
)
@@ -3993,7 +4004,8 @@ def rule_reportableAttributes
container tasks it will also include the inputs of the child tasks. Inputs may
not have any predecessors.
-The list can be customized by the [[listitem.column|listitem]] attribute.
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column|listtype]] attribute.
EOT
)
@@ -4029,7 +4041,8 @@ def rule_reportableAttributes
descr(<<'EOT'
A list of managers that the resource reports to.
-The list can be customized by the [[listitem.column|listitem]] attribute.
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column|listtype]] attributes.
EOT
)
@@ -4080,9 +4093,10 @@ def rule_reportableAttributes
* '''<nowiki>]->]</nowiki>''': End-to-End dependency
* '''<nowiki>[->]</nowiki>''': Start-to-End dependency
-The list can be customized by the [[listitem.column|listitem]] attribute.
-The dependency symbol can be generated via the ''''dependency'''' attribute
-inthe query, the target date via the ''''date'''' attribute.
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column|listtype]] attributes. The dependency symbol can be
+generated via the ''''dependency'''' attribute inthe query, the target date
+via the ''''date'''' attribute.
EOT
)
@@ -4099,7 +4113,8 @@ def rule_reportableAttributes
descr(<<'EOT'
All resources that have this resource assigned as a direct or indirect manager.
-The list can be customized by the [[listitem.column|listitem]] attribute.
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column|listtype]] attributes.
EOT
)
@@ -4107,7 +4122,8 @@ def rule_reportableAttributes
descr(<<'EOT'
A list of resources that are assigned to the task in the report time frame.
-The list can be customized by the [[listitem.column|listitem]] attribute.
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column|listtype]] attributes.
EOT
)
@@ -4115,7 +4131,8 @@ def rule_reportableAttributes
descr(<<'EOT'
The responsible people for this task.
-The list can be customized by the [[listitem.column|listitem]] attribute.
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column|listtype]] attributes.
EOT
)
@@ -4168,7 +4185,8 @@ def rule_reportableAttributes
will also include the targets of the child tasks. Targets may not have any
follower tasks.
-The list can be customized by the [[listitem.column|listitem]] attribute.
+The list can be customized by the [[listitem.column|listitem]] and
+[[listtype.column|listtype]] attributes.
EOT
)
View
1  lib/taskjuggler/reports/TableReport.rb
@@ -38,6 +38,7 @@ class TableReport < ReportBase
'alerttrend' => [ 'Alert Trend', false, :left, false ],
'balance' => [ 'Balance', true, :right, true ],
'bsi' => [ 'BSI', false, :left, false ],
+ 'children' => [ 'Children' , false, :left, false ],
'closedtasks' => [ 'Closed Tasks', true, :right, true ],
'competitorcount' => [ 'Competitor count', true, :right, true ],
'competitors' => [ 'Competitors', true, :left, true ],
Please sign in to comment.
Something went wrong with that request. Please try again.