You are not logged in.
Hello,
I did a big job in notification system so i want to be sure that user have all updates. For this i need them to add an email.
So when they are doing a ticket, i would like to make "email" mandatory field.
-
Second thing : i would like to remove "incident" in type. I'm nearly sure this cant be done unless direct code edit but if you can at least tell me which file i have to edit, it will be greatly appreciated
-
Picture here : h*ttps://ibb.co/Ct8SS3Z
Last edited by julie23 (2022-04-21 10:52:21)
Offline
Please have a look into Ticket Templates to define mandatory and pre-defined fields.
https://glpi-user-documentation.readthe … -templates
They can be accessed by a button at the top of the Tickets page. You can then assign templates by entity, profile or specific user to customize their ticket creation forms.
For setting a default template for a profile:
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Please have a look into Ticket Templates to define mandatory and pre-defined fields.
h*ttps://glpi-user-documentation.readthedocs.io/fr/latest/modules/overview/templates.html#ticket-templates
They can be accessed by a button at the top of the Tickets page. You can then assign templates by entity, profile or specific user to customize their ticket creation forms.
For setting a default template for a profile:
h*ttps://glpi-user-documentation.readthedocs.io/fr/latest/modules/administration/profiles/assistancetab.html#associations-permissions
Mmm i don't understand. My question is to remove Incident (from the field where you have Incident and request). The other question is to make email mandatory when a ticket is submited.
I did a lot in mandatory field but email isnt there. Same about removing incident i don't see a way without doing custome code
Am i wrong ? (i use glpi 9.5 )
Last edited by julie23 (2022-04-21 22:32:47)
Offline
In my opinion you cannot. But you can do a workaround. Business rules for tickets (front/ruleticket.php) and set - if category .... than action set type as request.
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
In my opinion you cannot. But you can do a workaround. Business rules for tickets (front/ruleticket.php) and set - if category .... than action set type as request.
But with this it will be still selectable (i think ?). Actually the best thing i found is to force the field to select request as defaut... but if you click agan , "incident" is still there...
Isnt it possible to // some line of code ?
Btw what about email mandatory in ticket ?
Offline
Ok i found about my first question :
// self::INCIDENT_TYPE => __('Incident')
line 3321 in ticket.class.php
-
I guess it's possible to put somethiing like "is mandatory" to make email mandatory ? Anyone to help on this ?
Offline
No, if the category is mandatory and you do not allow the incident. Or otherwise - yes, but the user has to select a category that will change on request.
The rule sets the type after the user sends the ticket, so even if it sends as an incident - the ticket will be registered as request.
Changing the source is a bad idea IMO.
Last edited by WebGreg (2022-04-22 16:39:06)
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
My comment was implying that you could make the type predefined to be "Incident" and also make it a hidden field. That should make them all incidents.
I am not sure what field you are referring to as "Email".
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
My comment was implying that you could make the type predefined to be "Incident" and also make it a hidden field. That should make them all incidents.
Are you sure about that? I don't see the type in the hidden fields.
--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS
Offline
Indeed, I thought it was there but I double checked now and it is not.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline