Recherche avancée¶
Avec Zammad, vous pouvez limiter votre recherche à des informations spécifiques. Cela vous permet de trouver, par exemple, des tickets avec des mots clés et des états spécifiques. Les informations ci-dessous vous aideront à améliorer vos résultats de recherche.
For instance, you can search for a ticket of a specific customer:
customer.firstname: John
ou:
customer.lastname: Doe
Si vous voulez effectuer une recherche plus complexe, vous pouvez utiliser des conditions avec () et les options AND/OR:
state.name: open AND (article.from:me OR article.from:somebody)
Attributs disponibles¶
Indication
Pour plus de détails sur les attributs disponibles, veuillez consulter notre page Zammad Admin-Documentation <https://docs.zammad.org/en/latest/install/elasticsearch/indexed-attributes.html>.
Attribut |
Possible Values |
Exemple |
Description |
|---|---|---|---|
numéro |
1118566 |
number:1118566 |
Search for a ticket number. |
titre |
un titre |
title: »un titre » |
If you need to use spacings in the search phrase, use quotes. Zammad will do an AND-search over the given words. You can also use a single keyword without quotation. |
created_at |
2018-11-18 |
created_at:2018-11-18 |
Vous pouvez utiliser soit une date simple, une plage de date ou >now-xh. Veuillez noter que le format de date doit être YYYY-MM-DD |
etat.nom |
new |
state.name: new |
You can filter for specific ticket states (and even combine them with an OR). Please note that you need to use the English naming for states, unless you have custom ticket states defined in your instance. |
article_count |
5 |
article_count:5 |
You can search for tickets with a specific number of articles (you can even search for everything with 5 or more articles or even up to 5 articles, if needed). |
article.from |
*bob* |
article.from:*bob* |
Show all tickets that contain articles from « Bob ». |
article.body |
chaud |
article.body:chaud |
First example shows every ticket containing the word « heat » - you can also use the fuzzy operator « ~ » to search for similar words like e.g. « head ». Zammad will also allow you to use regular expressions, where ever the attributes allows it. |
Combiner des phrases de recherche¶
Yous pouvez combiner des phrases de recherche en utilisant AND, OR et TO, dépendant de la situation et des phrases que vous utilisez. Si nécessaire, vous pouvez séparer des parties de votre phrase de recherche avec () pour effectuer une recherche complexe. Cela vous permet de combiner plusieurs phrases avec plusieurs dépendances (AND/OR). Si vous recevez des résultats que vous souhaitez exclure, vous pouvez utiliser la négation !. Voici ci-dessous quelques exemples que vous pourriez utiliser avec ceci :
Phrase de recherche |
Description |
|---|---|
state.name:(closed OR open) AND (priority.name: »2 normal » OR tags:feedback) |
Montre chaque ticket dont l’état est soit closed, ou open et a une priorité normale et l’étiquette feedback. |
state.name:(closed OR open) AND (priority.name: »2 normal » OR tags:feedback) AND !(Zammad) |
This gets the same result as above, expect that we don’t want the ticket to contain anything matching to « Zammad ». |
owner.email:bob@example.net AND state.name:(open OR new) |
Show tickets from bob@example.net that are either open or new. |
state.name:pending* AND article_count:[1 TO 5] |
Affiche tout ce qui aurait l’état en attente et avec 1 à 5 articles. |
Quelques attributs de ticket et leurs types¶
Ci-dessous vous pouvez trouver les attributs les plus importants triés par ticket et article.
Attributs du ticket¶
number : chaîne
title : chaîne
group: object (group.name, …)
priority: object (priority.name, …)
state: object (state.name, …)
organization: object (organization.name, …)
owner : objet (owner.firstname, owner.lastname, owner.email, …)
customer : objet (customer.firstname, customer.lastname, customer.email, …)
first_response_at : horodatage
first_response_in_min : entier (minutes ouvrées avant première réponse)
close_at : horodatage
close_in_min : entier (minutes ouvrées avant fermeture)
last_contact_at : horodatage (dernier contact par le client ou un opérateur)
last_contact_agent_at : horodatage (dernier contact par un opérateur)
last_contact_customer_at : horodatage (dernier contact par le client)
create_article_type.name: string (email|phone|web|…)
create_article_sender : chaîne (Customer|Agent|System)
article_count : entier
escalation_at : horodatage
pending_time : horodatage
Attributs de l’article¶
article.from : chaîne
article.to : chaîne
article.cc : chaîne
article.subject : chaîne
article.body : chaîne
article.attachment.title : chaîne (nom du fichier en pièce jointe)
article.attachment.content : chaîne (contenu de la pièce jointe)
article.attachment.content_type: string (MIME type, e.g.
application\/vnd.oasis.opendocument.spreadsheet; see hint)Indication
If a search for a file type doesn’t work, you have to provide the MIME type.
Make sure to escape the
/with a prefixed\.Examples:
LibreOffice spreadsheets:
application\/vnd.oasis.opendocument.spreadsheetLibreOffice text documents:
application\/vnd.oasis.opendocument.textMS Excel spreadsheets:
application\/vnd.openxmlformats-officedocument.wordprocessingml.documentMS Word text documents:
application\/vnd.openxmlformats-officedocument.wordprocessingml.documentPlain text files like .txt and .p7s:
text