View Issue Details

IDProjectCategoryView StatusLast Update
0023940mantisbtemailpublic2018-02-06 14:12
Reporterfman Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0023940: email content customization feature.
Description

I have the following use case:
For specific projects, I need to send a personalized email when ticket status becomes resolved.

I've not found a better option than using a mechanism similar to custom functions.

Going to create Pull Request.

TagsNo tags attached.

Activities

fman

fman

2018-02-06 14:12

reporter   ~0058779

  1. sample custom function
    /*

    */
    function email_notification_override_for_status_bug_resolved($p_bug_data) {

    $t_project_id = $p_bug_data['email_project_id'];
    $key2remove = array('history','sponsorships','sponsorship_total',
    'relations','email_steps_to_reproduce','email_due_date',
    'email_resolution','email_target_version',
    'email_tag','email_reproducibility','email_severity',
    'email_priority','email_status');

    foreach( $key2remove as $kill ) {
    unset($p_bug_data[$kill]);
    }

    $p_bug_data['custom_fields'] = array();
    $p_bug_data['bugnotes'] = array();
    $p_bug_data['message_id'] = 'new_top_line_for_resolved';

    return $p_bug_data;
    }

  2. Pull Request: https://github.com/mantisbt/mantisbt/pull/1285