bug_tracker::category_parent_element (public)

 bug_tracker::category_parent_element [ -package_id package_id ] \
    -keyword_id keyword_id [ -element element ]

Defined in packages/bug-tracker/tcl/bug-tracker-procs.tcl

Switches:
-package_id (optional)
-keyword_id (required)
-element (optional, defaults to "heading")

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::get_multirow bug_tracker::bug::get_multirow (public) bug_tracker::category_parent_element bug_tracker::category_parent_element bug_tracker::bug::get_multirow->bug_tracker::category_parent_element bug_tracker::category_parent_heading bug_tracker::category_parent_heading (public) bug_tracker::category_parent_heading->bug_tracker::category_parent_element bug_tracker::get_keywords bug_tracker::get_keywords (private) bug_tracker::category_parent_element->bug_tracker::get_keywords

Testcases:
No testcase defined.
Source code:
    foreach elm [get_keywords -package_id $package_id] {
        set child_id [lindex $elm 0]

        if { $child_id == $keyword_id } {
            set parent(id)      [lindex $elm 2]
            set parent(heading) [lindex $elm 3]
            return $parent($element)
        }
    }
Generic XQL file:
packages/bug-tracker/tcl/bug-tracker-procs.xql

PostgreSQL XQL file:
packages/bug-tracker/tcl/bug-tracker-procs-postgresql.xql

Oracle XQL file:
packages/bug-tracker/tcl/bug-tracker-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: