mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
N°463 Add 3 predefined OQL queries
This commit is contained in:
@@ -93,4 +93,34 @@
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
<QueryOQL alias="QueryOQL" id="11">
|
||||
<name>Kontaktliste eines Funktionales CI</name>
|
||||
<description>Kann in Benachrichtigungen verwendet werden, um alle verknüpften Kontakte eines Funktionales CI zu verständigen</description>
|
||||
<is_template>yes</is_template>
|
||||
<oql>SELECT Contact AS C JOIN lnkContactToFunctionalCI AS L ON L.contact_id=C.id
|
||||
WHERE L.functionalci_id = :this->id
|
||||
</oql>
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
<QueryOQL alias="QueryOQL" id="12">
|
||||
<name>Kontaktliste eines Dienstes</name>
|
||||
<description>Kann in Benachrichtigungen verwendet werden, um alle verknüpften Kontakte eines Dienstes zu verständigen</description>
|
||||
<is_template>yes</is_template>
|
||||
<oql>SELECT Contact AS C JOIN lnkContactToService AS L ON L.contact_id=C.id
|
||||
WHERE L.service_id = :this->id
|
||||
</oql>
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
<QueryOQL alias="QueryOQL" id="13">
|
||||
<name>Kontaktliste eines Vertrages</name>
|
||||
<description>Kann in Benachrichtigungen verwendet werden, um alle verknüpften Kontakte eines Vertrages zu verständigen</description>
|
||||
<is_template>yes</is_template>
|
||||
<oql>SELECT Contact AS C JOIN lnkContactToContract AS L ON L.contact_id=C.id
|
||||
WHERE L.contract_id = :this->id
|
||||
</oql>
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
</Set>
|
||||
|
||||
@@ -93,4 +93,34 @@
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
<QueryOQL alias="QueryOQL" id="11">
|
||||
<name>Contacts of a Functional CI</name>
|
||||
<description>Can be used in Notification, to notify the Contacts linked to the Functional CI.</description>
|
||||
<is_template>yes</is_template>
|
||||
<oql>SELECT Contact AS C JOIN lnkContactToFunctionalCI AS L ON L.contact_id=C.id
|
||||
WHERE L.functionalci_id = :this->id
|
||||
</oql>
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
<QueryOQL alias="QueryOQL" id="12">
|
||||
<name>Contacts of a Service</name>
|
||||
<description>Can be used in Notification, to notify the Contacts linked to the Service.</description>
|
||||
<is_template>yes</is_template>
|
||||
<oql>SELECT Contact AS C JOIN lnkContactToService AS L ON L.contact_id=C.id
|
||||
WHERE L.service_id = :this->id
|
||||
</oql>
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
<QueryOQL alias="QueryOQL" id="13">
|
||||
<name>Contacts of a Contract</name>
|
||||
<description>Can be used in Notification, to notify the Contacts linked to the Contract.</description>
|
||||
<is_template>yes</is_template>
|
||||
<oql>SELECT Contact AS C JOIN lnkContactToContract AS L ON L.contact_id=C.id
|
||||
WHERE L.contract_id = :this->id
|
||||
</oql>
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
</Set>
|
||||
|
||||
@@ -91,4 +91,34 @@
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
<QueryOQL alias="QueryOQL" id="11">
|
||||
<name>Les contacts d'un CI fonctionnel</name>
|
||||
<description>Utilisable dans les notifications, pour informer les contacts liés au CI fonctionnel courant.</description>
|
||||
<is_template>yes</is_template>
|
||||
<oql>SELECT Contact AS C JOIN lnkContactToFunctionalCI AS L ON L.contact_id=C.id
|
||||
WHERE L.functionalci_id = :this->id
|
||||
</oql>
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
<QueryOQL alias="QueryOQL" id="12">
|
||||
<name>Les contacts d'un Service</name>
|
||||
<description>Utilisable dans les notifications, pour informer les contacts liés au Service courant.</description>
|
||||
<is_template>yes</is_template>
|
||||
<oql>SELECT Contact AS C JOIN lnkContactToService AS L ON L.contact_id=C.id
|
||||
WHERE L.service_id = :this->id
|
||||
</oql>
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
<QueryOQL alias="QueryOQL" id="13">
|
||||
<name>Les contacts d'un Contrat</name>
|
||||
<description>Utilisable dans les notifications, pour informer les contacts liés au Contrat courant.</description>
|
||||
<is_template>yes</is_template>
|
||||
<oql>SELECT Contact AS C JOIN lnkContactToContract AS L ON L.contact_id=C.id
|
||||
WHERE L.contract_id = :this->id
|
||||
</oql>
|
||||
<fields>id,email</fields>
|
||||
<finalclass>QueryOQL</finalclass>
|
||||
</QueryOQL>
|
||||
</Set>
|
||||
|
||||
Reference in New Issue
Block a user