bug_tracker::status_get_options (public)

 bug_tracker::status_get_options [ -package_id package_id ]

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

Switches:
-package_id
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 ad_conn ad_conn (public) bug_tracker::bug::get_instance_workflow_id bug_tracker::bug::get_instance_workflow_id (public) workflow::fsm::get_states workflow::fsm::get_states (public) workflow::state::fsm::get workflow::state::fsm::get (public) bug_tracker::status_get_options bug_tracker::status_get_options bug_tracker::status_get_options->ad_conn bug_tracker::status_get_options->bug_tracker::bug::get_instance_workflow_id bug_tracker::status_get_options->workflow::fsm::get_states bug_tracker::status_get_options->workflow::state::fsm::get

Testcases:
No testcase defined.
Source code:
    if { $package_id eq "" } {
        set package_id [ad_conn package_id]
    }

    set workflow_id [bug_tracker::bug::get_instance_workflow_id -package_id $package_id]
    set state_ids [workflow::fsm::get_states -workflow_id $workflow_id]

    set option_list [list]
    foreach state_id $state_ids {
        workflow::state::fsm::get -state_id $state_id -array state
        lappend option_list [list "$state(pretty_name)" $state(short_name)]
    }

    return $option_list
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: