Create Event Handler
To register an Event Handler, do this:
- Select Event Handler Registry in the "Teamworkx Connector" section in the app configuration.
The "Event Handler" dialog is displayed. - Select Create Handler to create a new Handler.
- Enter the following information:
- Account ID: Select the account you want to use for this event.
- Project: The project this event handler belongs to.
- IssueType: The issue type this event handler belongs to.
- Event Pattern: The type of Jira event that triggers this handler. Patterns are
- ISSUECREATED
- ISSUEUPDATED
- ISSUEDELETED
- WORKLOGCREATED
- WORKLOGUPDATED
- WORKLOGDELETED
- COMMENTCREATED
- COMMENTUPDATED
- COMMENTDELETED
- ATTACHMENTCHANGED
- ISSUEMOVED
- TRANSACTIONERROR
- Event: The specific Jira event that triggers this handler
- Activity: Currently only CALLBACK is available.
- Customer Reference: Customer specific identifier
- Mode: specifies if the handler is executed scheduled (async) or direct (sync)
- Path: The REST path that is called when the handler conditions matches
- Method: The request method. Supported are GET, PUT, POST, DELETE.
- Body: The body you want to have send to you (normally a JSON object). The Teamworkx Connector can add data of the issue or the event to your JSON object. For more information go here
Click Save.
You can also register Event Handler via Rest API. Do the following steps:
- Get the Form to Register for an Event
- Register an Event
- Check the Form of an Registered Event
- Variable replacments in the JSON Data of Callbacks