bug_tracker::bug::notification_info::get_notification_info (private)

 bug_tracker::bug::notification_info::get_notification_info case_id \
    object_id

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

Parameters:
case_id (required)
object_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 AcsSc.workflow_notificationinfo.getnotificationinfo.bugnotificationinfo AcsSc.workflow_notificationinfo.getnotificationinfo.bugnotificationinfo (private) bug_tracker::bug::notification_info::get_notification_info bug_tracker::bug::notification_info::get_notification_info AcsSc.workflow_notificationinfo.getnotificationinfo.bugnotificationinfo->bug_tracker::bug::notification_info::get_notification_info _ _ (public) bug_tracker::bug::notification_info::get_notification_info->_ ad_decode ad_decode (public) bug_tracker::bug::notification_info::get_notification_info->ad_decode ad_url ad_url (public) bug_tracker::bug::notification_info::get_notification_info->ad_url apm_package_url_from_id apm_package_url_from_id (public) bug_tracker::bug::notification_info::get_notification_info->apm_package_url_from_id bug_tracker::bug::get bug_tracker::bug::get (public) bug_tracker::bug::notification_info::get_notification_info->bug_tracker::bug::get

Testcases:
No testcase defined.
Source code:
    bug_tracker::bug::get -bug_id $object_id -array bug

    set url [export_vars -base "[ad_url]/[apm_package_url_from_id $bug(project_id)]bug" {
        { bug_number $bug(bug_number) }
    }]

    bug_tracker::get_pretty_names -array pretty_names

    set notification_subject_tag [db_string select_notification_tag {} -default {}]

    set one_line "$pretty_names(Bug) $bug(summary)"

    # Build up data structures with the form labels and values
    # (Note, this is something that the metadata system should be able to do for us)

    array set label [list  summary "[_ bug-tracker.Summary]"  status "[_ bug-tracker.Status]"  found_in_version "[_ bug-tracker.Found]"  fix_for_version "[_ bug-tracker.Fix]"  fixed_in_version "[_ bug-tracker.Fixed_1]"  ]

    set label(bug_number) "$pretty_names(Bug) "
    set label(component) "$pretty_names(Component)"

    set fields {
        bug_number
        component
    }

    # keywords
    foreach { category_id category_name } [bug_tracker::category_types -package_id $bug(project_id)] {
        lappend fields $category_id
        set value($category_id) [bug_tracker::category_heading  -keyword_id [content::keyword::item_get_assigned -item_id $bug(bug_id) -parent_id $category_id]  -package_id $bug(project_id)]
        set label($category_id$category_name
    }

    lappend fields summary status

    if { [bug_tracker::versions_p -package_id $bug(project_id)] } {
        lappend fields found_in_version fix_for_version fixed_in_version
    }

    set value(bug_number) $bug(bug_number)
    set value(component)  $bug(component_name)
    set value(summary) $bug(summary)
    set value(status) $bug(pretty_state)
    set value(found_in_version) [ad_decode $bug(found_in_version_name) "" "[_ bug-tracker.Unknown]" $bug(found_in_version_name)]
    set value(fix_for_version) [ad_decode $bug(fix_for_version_name) "" "[_ bug-tracker.Undecided]" $bug(fix_for_version_name)]
    set value(fixed_in_version) [ad_decode $bug(fixed_in_version_name) "" "[_ bug-tracker.Unknown]" $bug(fixed_in_version_name)]

    # Remove fields that should be hidden in this state
    foreach field $bug(hide_fields) {
        set index [lsearch -exact $fields $field]
        if { $index != -1 } {
            set fields [lreplace $fields $index $index]
        }
    }

    # Build up the details list
    set details_list [list]
    foreach field $fields {
        lappend details_list $label($field) $value($field)
    }

    return [list $url $one_line $details_list $notification_subject_tag]
Generic XQL file:
<fullquery name="bug_tracker::bug::notification_info::get_notification_info.select_notification_tag">
    <querytext>
        select email_subject_name
        from   bt_projects p,
               bt_bugs b
        where  b.bug_id = :object_id
        and    p.project_id = b.project_id
    </querytext>
</fullquery>
packages/bug-tracker/tcl/bug-procs.xql

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

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

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