Events
- 1 Common Event Fields
- 2 Events
- 2.1 Branch Activated
- 2.2 Branch Created
- 2.3 Branch Deleted
- 2.4 Branch Inactivated
- 2.5 Comment Added
- 2.6 Comment Updated
- 2.7 Comment Deleted
- 2.8 Error Occurred
- 2.9 Package Created
- 2.10 Package Status Updated
- 2.11 Pipeline Stage Completed
- 2.12 Pipeline Version Activated
- 2.13 Project Created/Activated/Inactivated/Deleted
- 2.14 Release Started
- 2.15 Release Ended
- 2.16 Snapshot Completed
- 2.17 Tag Assigned
- 2.18 Tag Unassigned
- 2.19 Task Created
- 2.20 Task Approved
- 2.21 Task Rejected
- 2.22 User Created
- 2.23 Workflow Completed
- 2.24 Workflow Version Activated
- 2.25 Work Item Created
- 2.26 Work Item Updated
Common Event Fields
Each incoming event passes an event payload to the listener depending on the event type. Below are example payloads for each event type.
All Event messages have the following top level fields:
Key | Description |
---|---|
eventType | The event type that triggered this Event. e.g. Workflow Completed, Task Created. |
actor | The actor, generally a user, that triggered this event. |
object | The object the event occurred on. This could be the Project name, Release name etc. |
timestamp | The time the event occurred. |
payload | The specific event payload (see examples below) |
Events
Branch Activated
The branch activated event is triggered whenever a branch which was previously inactive is activated in a project.
{
"eventType": "Branch Activated",
"actor": "fdadmin",
"object": "813420",
"timestamp": "2024-02-15 09:10:53 -0600",
"payload": {
"createdBy": "fdadmin",
"createdOn": "2022-05-27 13:49:54 -0500",
"updatedBy": "fdadmin",
"updatedOn": "2024-02-15 09:10:52 -0600",
"project": {
"projectId": 209602,
"projectName": "XXHR"
},
"description": null,
"versionSyntax": "\"1.0.\" + SequenceNumber",
"projectBranchId": 813420,
"attribute1": null,
"mainBranchFlag": false,
"attribute3": null,
"attribute2": null,
"branchName": "testBranch",
"lastDiscoveredOn": null
}
}
Branch Created
The branch created event is triggered whenever a branch is created in a project.
{
"eventType": "Branch Created",
"actor": "fdadmin",
"object": "847801",
"timestamp": "2024-02-15 09:11:05 -0600",
"payload": {
"createdBy": "fdadmin",
"createdOn": "2024-02-15 09:11:05 -0600",
"updatedBy": "fdadmin",
"updatedOn": "2024-02-15 09:11:05 -0600",
"project": {
"projectId": 209602,
"projectName": "XXHR"
},
"description": null,
"versionSyntax": "\"1.0.\" + SequenceNumber",
"projectBranchId": 847801,
"attribute1": null,
"mainBranchFlag": false,
"attribute3": null,
"attribute2": null,
"branchName": "new branch",
"lastDiscoveredOn": null
}
}
Branch Deleted
The branch deleted event is triggered whenever a branch is deleted in a project.
{
"eventType": "Branch Deleted",
"actor": "fdadmin",
"object": "847301",
"timestamp": "2024-02-07 14:25:34 -0600",
"payload": {
"createdBy": "fdadmin",
"createdOn": "2024-02-07 14:22:11 -0600",
"updatedBy": "fdadmin",
"updatedOn": "2024-02-07 14:24:44 -0600",
"project": {
"projectId": 16801,
"projectName": "Test Project"
},
"description": null,
"mainBranchFlag": false,
"versionSyntax": "\"1.0.\" + SequenceNumber",
"projectBranchId": 847301,
"branchName": "branch2",
"attribute1": null,
"attribute3": null,
"attribute2": null,
"lastDiscoveredOn": null
}
}
Branch Inactivated
The branch inactivated event is triggered whenever a branch which was previously active is inactivated in a project.
Comment Added
The Comment Added event is triggered anytime there is a comment created throughout FlexDeploy. As an example use case, you could use this event to create a Jira Ticket anytime a comment was created and contained the words “Jira”.
Comment Updated
The Comment Updated event is triggered anytime a comment is edited throughout FlexDeploy.
Comment Deleted
The Comment Updated event is triggered anytime a comment is deleted throughout FlexDeploy.
Error Occurred
The error occurred event is triggered anytime an application error occurs within FlexDeploy. These errors are also displayed on the Admin Operations → View Errors page.
Package Created
The Package Created event is triggered anytime a package is created for a project throughout FlexDeploy. This could possibly be used as a event to execute a script to automatically add the package to a release whenever one is created for a specific project.
Package Status Updated
The Package Status Updated event is triggered anytime a package’s status is changed (‘Active’, ‘Inactive’, ‘Completed’) for a project throughout FlexDeploy. This could possibly be used as a event to execute a script to automatically remove the package from a release whenever it is inactivated or completed for a specific project.
Pipeline Stage Completed
The Pipeline Stage Completed event is triggered whenever a stage succeeds or fails in a Release Pipeline Execution. Common use cases can include logic you want to perform after EVERY pipeline execution regardless of the Pipeline or Release being used. For example you may want to create a Service Now incident whenever the Production Stage fails in any pipeline. This could be easily accomplished by listening for this event but filtering for a status of FAILED and environment of PRODUCTION.
Pipeline Version Activated
The pipeline version activated event is triggered whenever a new version is activated in a pipeline.
Project Created/Activated/Inactivated/Deleted
@Since 8.0.0.2The Project Events are sent when a project is Created, Activated, Inactivated, and deleted.
Release Started
The Release Started event is triggered whenever a release is started in FlexDeploy. Common use cases can include logic you want to perform after any release is started. For example you may want to start a sprint in Jira whenever the release is started.
Release Ended
The Release Ended event is triggered whenever a release is endedin FlexDeploy. Common use cases can include logic you want to perform after any release is ended. For example you may want to end a sprint in Jira whenever the release is ended.
Snapshot Completed
The Snapshot Completed event is triggered whenever a snapshot builds successfully and is entering the first stage, or fails to build.
Tag Assigned
The Tag Assigned event is triggered whenever a tag is assigned to an object like a project, environment, or target group.
Tag Unassigned
The Tag Unassigned event is triggered whenever a tag is unassigned from an object like a project, environment, or target group.
Task Created
The Task Created event is triggered whenever a human task is created. This can be triggered from either a standalone project or a release.
Task Approved
The Task Approved event is triggered whenever a human approval task is approved.
Task Rejected
The Task Rejected event is triggered whenever a human approval task is rejected.
User Created
The User Created event is triggered whenever a user is created inside FlexDeploy. This could be particularly useful when configuring users in an Single Sign-On (SSO) Realm setup.
Workflow Completed
The Workflow Completed event is triggered whenever a workflow execution succeeds or fails. Note that this event will trigger for ALL workflow types.
The testSuiteExec array in the payload will return all test suite executions from the workflow. This is most common in TEST workflows but tests can be run from any workflow type (Build, Deploy, Utility, etc..).
Workflow Completed (DEPLOY) Event Payload
Workflow Completed (TEST) Event Payload
Workflow Version Activated
The workflow version activated event is triggered whenever a new version is activated in a workflow.
Work Item Created
The Work Item Created event is triggered whenever a work item is created.
Work Item Updated
The Work Item Updated event is triggered whenever work item is updated.
- style