Open raregtp opened 1 week ago
Well, as luck would have it, I've found a work-around (but don't know what changed from 10.0.15 to 10.0.17). While making adjustments to the HTML to remove the ##IFticket.status=Pending## code block, I was hoping to just keep it commented and move it in the code. So this:
\ \
\ \##ticket.title## \##ticket.authors## \##ticket.priority## \##ticket.status## \##IFticket.assigntousers####ticket.assigntousers##> \
##ENDIFticket.assigntousers####IFticket.assigntogroups##
##ticket.assigntogroups## ##ENDIFticket.assigntogroups####IFticket.assigntosupplier##
##ticket.assigntosupplier## ##ENDIFticket.assigntosupplier##>##ticket.creationdate## \
was changed to this:
\ \ \
\ \ \##ticket.title## \##ticket.authors## \##ticket.priority## \##ticket.status## \##IFticket.assigntousers####ticket.assigntousers## \
##ENDIFticket.assigntousers####IFticket.assigntogroups##
##ticket.assigntogroups## ##ENDIFticket.assigntogroups####IFticket.assigntosupplier##
##ticket.assigntosupplier## ##ENDIFticket.assigntosupplier####ticket.creationdate## \
Not sure why that would make a difference other than there's an extra carriage return in there....but the tags are still commented out. Either way....would be good to know what changed, but I'm good with this adjustment in my code as it renders the results I was trying to achieve and am used to in the prior GLPI version.
Code of Conduct
Is there an existing issue for this?
Version
10.0.17
Bug description
Using version 10.0.15, the notification for tickets not solved in X days had been working fine on our weekly notification schedule for this item. After upgrading to 10.0.17, our alert for tickets not closed quick parsing the tags correctly.
Prior to 10.0.17, our code block in the HTML notification template translation looked like this:
After updating to 10.0.17, the only way I can get the tags to parse in the above code block is to remove the ##IFticket.status=Pending## and related tags, making the above code block look like this:
I have tried various combinations of the above, and also tried switching to ##IFticket.storestatus=4## in place of the ##IFticket.status=Pening##, but nothing seems to work at this point. It seems related to the fact that I'm embedding it within a FOREACH block, and I have ran into "embedding" issues in some of our other templates that forced me to be creative on how I built out our templates.
Basically, just need a way for the alertnotclosed notification to allow for excluding pending tickets, or for specifying the ticket status to include. This could be an alert configuraiton option on the automatic action, or it could be a "code" solution in my HTML.....which is what was working prior to 10.0.17.
Relevant log output
Page URL
No response
Steps To reproduce
alertnotclosed-ticketnotification.txt
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Locales overrides
Anything else?
No response