Mantis

Notification sur les sous projet

Posted by franck 
Notification sur les sous projet
July 11, 2007 09:10AM
Bonjour

Je rencontre un problème dans le paramétrage des notifications pour les sous projets.

Pour un sous projet, je veux que les RAPPORTEURS et les ADMINISTRATEURS recoivent un mail lors d'une nouvelle demande.

Lorsque je valide ce paramétrage, les profils DEVELOPPEURS et GESTIONNAIRES, se voient aussi attribuer automatiquement ce paramétrage.
Re: Notification sur les sous projet
July 11, 2007 10:08AM
Bonjour,

Et sur un projet ça marche ?

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Notification sur les sous projet
July 11, 2007 08:40PM
Je viens de vérifier pour le projet et je rencontre le même problème.
Re: Notification sur les sous projet
July 12, 2007 08:30AM
Bonjour,

Je viens de regarder les paramètres de configuration et il n'est pas possible de faire ce que vous voulez. On ne peut spécifier qu'un niveau min et/ou un niveau max, on ne peut pas choisir plusieurs niveaux non consécutifs pour les notifications par emails.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Notification sur les sous projet
July 12, 2007 09:08AM
Les modifications à apporter au code sont elles importantes ?
Re: Notification sur les sous projet
July 12, 2007 09:25AM
Quote
franck
Les modifications à apporter au code sont elles importantes ?

Le mieux est d'utiliser une fonction modifiable custom_function_override_issue_create_notify( $p_issue_id ) à mettre dans le fichier custom_functions_inc.php (à la racine du répertoire Mantis).

Voici quelques trucs pour vous aider :
Language: PHP
$t_project_id = bug_get_field( $t_issue_id, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;project_id&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; ); // Pour obtenir le project_id $t_user_list = project_get_all_user_rows( $t_project_id, ADMINISTRATOR ); // Pour obtenir la liste des admins du projet span class="br0">( $t_user_list $t_user ) { $t_user_id = $t_user[&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;id&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;]; lang_push( user_pref_get_language( $t_user_id, $t_project_id ) ); $t_visible_bug_data = email_build_visible_bug_data( $t_user_id, $t_issue_id, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;email_notification_title_for_action_bug_submitted&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; ); email_bug_info_to_one_user( $t_visible_bug_data, &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;email_notification_title_for_action_bug_submitted&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;, $t_project_id, $t_user_id, null ); lang_pop(); }

Et il faut donc activer la notification par email que pour les reporters (la fonction ci-dessus fera le reste).

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 1
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr