Webhook
ZenTao integrates the webhook function, which can be used for message integration by sending data in JSON format to third party hook addresses. The following describes how to configure this feature.
Configuring Webhook
ZenTao has built-in multiple types of options, and fill in different information according to different options.
Notes:
- Name: required field.
- Hook address: required field, obtained from a third party.
- Sending: Synchronous means that a message will be sent to the hook address immediately after the operation is performed in ZenTao. Asynchronous means that you need to set in "Background" - "System" - "Timing" to send tasks regularly.
- Related products: Empty means that all operations in ZenTao will be sent to the hook address,otherwise only the related operations of the selected product will be sent.
- Related projects: Empty means that all operations in ZenTao will be sent to the hook address, otherwise only the related operations of the selected project will be sent.
-
Trigger action: It refers to sending a message to the hook address when certain operations are performed. It can be set in "Background" - "Notification" - "Settings". If you are familiar with the secondary development based on ZenTao, you can modify this content by extending zentao/module/webhook/config.php file.
-
Parameter type: The attributes of the data sent include:
{ "objectType": "", //Object type, can be null "objectID": "", //Object ID,can be null "product": "", //Related product ID,can be null "project": "", //Related project ID,can be null "action": "", //Action,can be null "actor": "", //Actor,can be null "date": "", //Action date,can be null "comment": "", //Note,can be null "text": "" //Action content, including the url of the actor, required. }