Re: [Glpi-dev] Features: Add new tags to notification about tickets

2013-01-04 Thread Julien Dombre

Le 18/12/2012 15:25, wolvverine a écrit :
I must add information in first notification about new ticket: What 
is the position of the ticket in a queue -

number of all open and unresolved tickets in this moment.
Example: For the entity of the ticket


Hi,

Ticket added for the 0.84 version : https://forge.indepnet.net/issues/4141

Regards

Julien
___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


Re: [Glpi-dev] Features: Add new tags to notification about tickets

2012-12-31 Thread wolvverine
For all tickets:

--- notificationtargetticket.class.php.orig 2012-12-17 23:14:50.210300890
+0100
+++ notificationtargetticket.class.php 2012-12-21 11:04:35.035306071 +0100
@@ -247,6 +247,30 @@
   // is ticket deleted
   $datas['##ticket.isdeleted##'] =
Dropdown::getYesNo($item-getField('is_deleted'));

+// Tickets status infos
+
+ $restrict =  `is_deleted` = '0' AND `status` != 'closed' AND `status` !=
'resolved' ;
+ $tickets = getAllDatasFromTable('glpi_tickets',$restrict);
+
+ $datas['tickets'] = array();
+ if (count($tickets)) {
+$ticket = new Ticket();
+
+   foreach ($tickets as $ticket) {
+$tmp = array();
+$datas['tickets'][] = $tmp;
+ }
+ }
+
+ $datas['##ticket.number.of.unresolved.tickets##'] = 0;
+ if (!empty($datas['tickets'])) {
+$datas['##ticket.number.of.unresolved.tickets##'] =
count($datas['tickets']);
+ }
+
+

   //Tags associated with the object linked to the ticket
   $datas['##ticket.itemtype##']   = '';


2012/12/18 Julien Dombre m...@indepnet.net

  Le 18/12/2012 13:37, Julien Dombre a écrit :

 Le 18/12/2012 13:31, wolvverine a écrit :

 No, it is not solution. In the new notification of ticket, I must add
 field: Which is the ticket in a queue.


 Sorry I do not understand your request and aim.


 I forward a direct answer :
 J must add information in first notification about new ticket: What is
 the position of the ticket in a queue
 number of all open tickets in this moment

  My answer to this one :
 Trouble is to know for which entities we need to compute this value.
 We also could do it for the entity of the ticket but it may not be the
 right value you want.

 Regards

 Julien Dombre


 ___
 Glpi-dev mailing list
 Glpi-dev@gna.org
 https://mail.gna.org/listinfo/glpi-dev


___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


Re: [Glpi-dev] Features: Add new tags to notification about tickets

2012-12-18 Thread wolvverine
No, it is not solution. In the new notification of ticket, I must add
field: Which is the ticket in a queue.


2012/12/18 Julien Dombre m...@indepnet.net

  Hi,

 Do you see the automatic action : 'alertnotclosed' which send notification
 on not closed tickets ?
 I think it is the solution of your problem.
 We could add number tag for this action.

 Regards

 Julien


 Le 18/12/2012 08:06, Julien Dombre a écrit :

 Le 17/12/2012 21:54, wolvverine a écrit :

 For:
 Type : Ticket

  For example for making notifications to managers or for informing users
 about how many tickets has now helpdesk. It is required for some government
 offices.



 But for which actions.
 Notifications on tickets (new, update, delete) is specific to one ticket
 so it is not possible to have global stats...

 Regards

 Julien Dombre




 ___
 Glpi-dev mailing listGlpi-dev@gna.orghttps://mail.gna.org/listinfo/glpi-dev



 ___
 Glpi-dev mailing list
 Glpi-dev@gna.org
 https://mail.gna.org/listinfo/glpi-dev


___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


Re: [Glpi-dev] Features: Add new tags to notification about tickets

2012-12-18 Thread Julien Dombre

Le 18/12/2012 13:31, wolvverine a écrit :
No, it is not solution. In the new notification of ticket, I must add 
field: Which is the ticket in a queue.




Sorry I do not understand your request and aim.

Regards

Julien


___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


Re: [Glpi-dev] Features: Add new tags to notification about tickets

2012-12-18 Thread Julien Dombre

Le 18/12/2012 13:37, Julien Dombre a écrit :

Le 18/12/2012 13:31, wolvverine a écrit :
No, it is not solution. In the new notification of ticket, I must add 
field: Which is the ticket in a queue.




Sorry I do not understand your request and aim.


I forward a direct answer :
J must add information in first notification about new ticket: What is 
the position of the ticket in a queue

number of all open tickets in this moment

My answer to this one :
Trouble is to know for which entities we need to compute this value.
We also could do it for the entity of the ticket but it may not be the 
right value you want.


Regards

Julien Dombre

___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


Re: [Glpi-dev] Features: Add new tags to notification about tickets

2012-12-17 Thread Julien Dombre

Hi,

for whoch notification would you these tags ?

Regards

Julien


Le 17/12/2012 17:30, wolvverine a écrit :

##ticket.unresolved.number##
##lang.ticket.unresolved.number##




___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


Re: [Glpi-dev] Features: Add new tags to notification about tickets

2012-12-17 Thread wolvverine
For:
Type : Ticket

For example for making notifications to managers or for informing users
about how many tickets has now helpdesk. It is required for some government
offices.


2012/12/17 wolvverine wolvverine...@gmail.com

 ##ticket.unresolved.number##
 ##lang.ticket.unresolved.number##



___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


Re: [Glpi-dev] Features: Add new tags to notification about tickets

2012-12-17 Thread Julien Dombre

Le 17/12/2012 21:54, wolvverine a écrit :

For:
Type :Ticket

For example for making notifications to managers or for informing 
users about how many tickets has now helpdesk. It is required for some 
government offices.





But for which actions.
Notifications on tickets (new, update, delete) is specific to one ticket 
so it is not possible to have global stats...


Regards

Julien Dombre


___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


Re: [Glpi-dev] Features: Add new tags to notification about tickets

2012-12-17 Thread Julien Dombre

Hi,

Do you see the automatic action : 'alertnotclosed' which send 
notification on not closed tickets ?

I think it is the solution of your problem.
We could add number tag for this action.

Regards

Julien


Le 18/12/2012 08:06, Julien Dombre a écrit :

Le 17/12/2012 21:54, wolvverine a écrit :

For:
Type :Ticket

For example for making notifications to managers or for informing 
users about how many tickets has now helpdesk. It is required for 
some government offices.





But for which actions.
Notifications on tickets (new, update, delete) is specific to one 
ticket so it is not possible to have global stats...


Regards

Julien Dombre




___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev


___
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev