You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2016-03-07 14:06:14

elsa.blomster
Guest
Registered: 2016-03-07
Posts: 1

Show latest followup or task in notification (if present)

In my followup email I want to show the latest followup.description or the latest task.description, ie if the task.date is newer than the latest followup.date - show the task.description, else show the followup.description. I've tried as below, but can't get it to work.

##IFticket.numberoftasks<1##
    ##FOREACH LAST 1 followups##
        ##followup.description##

    ##ENDFOREACHfollowups##
##ENDIFticket.numberoftasks##
##ELSEticket.numberoftasks##
    ##IFticket.numberoffollowups<1##
        ##FOREACH LAST 1 tasks##
            Vi har planerat att arbeta med ditt ärende: ##task.end##
            ##task.description##
        ##ENDFOREACHtasks##
    ##ENDIFticket.numberoffollowups##
##ENDELSEticket.numberoftasks##

##IFticket.numberoftasks>0##
    ##IFticket.numberoffollowups>0##
        ##FOREACH LAST 1 tasks##
            ##FOREACH LAST 1 followups##
                ##IFtask.date<followup.date##´
                    Vi har planerat att arbeta med ditt ärende: ##task.end##
                    ##task.description##
                ##ENDIFtask.date##
                ##IFfollowup.date<task.date##
                    ##followup.description##
                ##ENDIFfollowup.date##
            ##ENDFOREACHfollowups##
        ##ENDFOREACHtasks##
    ##ENDIFticket.numberoffollowups##
##ENDIFticket.numberoftasks##

Offline

#2 2018-02-02 22:07:59

ccnet
Guest
Registered: 2013-06-13
Posts: 5

Re: Show latest followup or task in notification (if present)

Hi, could you solve this question ?
we are interested as well wink

Thanks

Offline

#3 2018-02-03 10:59:31

KKAdmin
Guest
From: Germany
Registered: 2010-03-05
Posts: 789

Re: Show latest followup or task in notification (if present)

If you don't use the notification event ticket update you can solve this. I use followup notification or task notification so i got always only the notification about this object which was changed.


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.2.3 /Ubuntu 16.04.4 LTS
Apache/2.4.18 (Ubuntu) - PHP 7.0.30-0ubuntu0.16.04.1 - MySQL 5.7.22-0ubuntu0.16.04.1

Offline

Board footer

Powered by FluxBB