Share via


Event Types - List

List available event types for this service. Optionally filter by only event types for the specified publisher.

GET https://{service}dev.azure.com/{organization}/_apis/notification/eventtypes?api-version=7.1
GET https://{service}dev.azure.com/{organization}/_apis/notification/eventtypes?publisherId={publisherId}&api-version=7.1

URI Parameters

Name In Required Type Description
organization
path

string

The name of the Azure DevOps organization.

service
path

string

The service to which this request is directed.

api-version
query True

string

Version of the API to use. This should be set to '7.1' to use this version of the api.

publisherId
query

string

Limit to event types for this publisher

Responses

Name Type Description
200 OK

NotificationEventType[]

successful operation

Security

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Scopes

Name Description
vso.notification Provides read access to subscriptions and event metadata, including filterable field values.

Examples

All
By publisher

All

Sample request

GET https://dev.azure.com/fabrikam/_apis/notification/eventtypes?api-version=7.1

Sample response

{
  "count": 19,
  "value": [
    {
      "id": "ms.vss-build.build-completed-event",
      "name": "Build completed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-build.build-completed-event",
      "eventPublisher": {
        "id": "ms.vss-build.build-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-build.build-and-release-event-category",
        "name": "Build"
      },
      "roles": [
        {
          "id": "lastChangedBy",
          "name": "Last changed by"
        },
        {
          "id": "requestedBy",
          "name": "Requested by"
        },
        {
          "id": "requestedFor",
          "name": "Requested for"
        }
      ],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-build",
      "color": "#748189"
    },
    {
      "id": "ms.vss-build.build-completion-legacy-event",
      "name": "Build completed (legacy)",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-build.build-completion-legacy-event",
      "eventPublisher": {
        "id": "ms.vss-build.build-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-build.build-and-release-event-category",
        "name": "Build"
      },
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": false,
      "icon": "css://bowtie-icon bowtie-build",
      "color": "#748189"
    },
    {
      "id": "ms.vss-build.build-completion-legacy-event2",
      "name": "Build completedV2 (legacy)",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-build.build-completion-legacy-event2",
      "eventPublisher": {
        "id": "ms.vss-build.build-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-build.build-and-release-event-category",
        "name": "Build"
      },
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": false,
      "icon": "css://bowtie-icon bowtie-build",
      "color": "#748189"
    },
    {
      "id": "ms.vss-build.build-definition-changed-event",
      "name": "Build definition changed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-build.build-definition-changed-event",
      "eventPublisher": {
        "id": "ms.vss-build.build-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "",
      "color": ""
    },
    {
      "id": "ms.vss-build.build-resource-changed-event",
      "name": "Build resource changed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-build.build-resource-changed-event",
      "eventPublisher": {
        "id": "ms.vss-build.build-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-build.build-and-release-event-category",
        "name": "Build"
      },
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "",
      "color": ""
    },
    {
      "id": "ms.vss-build.build-status-change-event",
      "name": "Build status change",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-build.build-status-change-event",
      "eventPublisher": {
        "id": "ms.vss-build.build-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-build.build-and-release-event-category",
        "name": "Build"
      },
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-build",
      "color": "#748189"
    },
    {
      "id": "ms.vss-code.checkin-event",
      "name": "Code checked in",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.checkin-event",
      "eventPublisher": {
        "id": "ms.vss-code.code-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-code.code-tfvc-event-category",
        "name": "Code (TFVC)"
      },
      "roles": [
        {
          "id": "committer",
          "name": "Committer"
        },
        {
          "id": "owner",
          "name": "Owner"
        }
      ],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": true,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-repo-tfvc",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-push-event",
      "name": "Code pushed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-push-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-code.code-git-event-category",
        "name": "Code (Git)"
      },
      "roles": [
        {
          "id": "pusher",
          "name": "Pushed by"
        }
      ],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-tfvc-commit",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-repository-created-event",
      "name": "Repository created",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-repository-created-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-repo-git",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-repository-renamed-event",
      "name": "Repository renamed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-repository-renamed-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-repo-git",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-repository-deleted-event",
      "name": "Repository deleted",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-repository-deleted-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-repo-git",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-import-succeeded-event",
      "name": "Import successful",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-import-succeeded-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "collection",
        "project"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "",
      "color": ""
    },
    {
      "id": "ms.vss-code.git-import-failed-event",
      "name": "Import failed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-import-failed-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "collection",
        "project"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "",
      "color": ""
    },
    {
      "id": "ms.vss-code.git-pullrequest-event",
      "name": "Pull request created or updated",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-pullrequest-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-code.code-git-event-category",
        "name": "Code (Git)"
      },
      "roles": [
        {
          "id": "author",
          "name": "Authored by"
        },
        {
          "id": "reviewer",
          "name": "Reviewer"
        },
        {
          "id": "changedReviewers",
          "name": "Changed reviewers"
        }
      ],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": true,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-tfvc-pull-request",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-pullrequest-merge-event",
      "name": "Pull request merged",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-pullrequest-merge-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-code.code-git-event-category",
        "name": "Code (Git)"
      },
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": true,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-tfvc-merge",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-codereview.codereview-changed-event",
      "name": "Code review changed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-codereview.codereview-changed-event",
      "eventPublisher": {
        "id": "ms.vss-codereview.codereview-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-code.code-tfvc-event-category",
        "name": "Code (TFVC)"
      },
      "roles": [
        {
          "id": "requestedBy",
          "name": "Requested by"
        },
        {
          "id": "newReviewer",
          "name": "New reviewer"
        },
        {
          "id": "reviewer",
          "name": "Reviewer"
        },
        {
          "id": "declinedReviewer",
          "name": "Declined reviewer"
        }
      ],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": true,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-tfvc-pull-request",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-notifications.subscription-disabled-event",
      "name": "Subcription disabled",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-notifications.subscription-disabled-event",
      "eventPublisher": {
        "id": "ms.vss-notifications.notifications-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00000000-0000-0000-0000-000000000000"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "collection",
        "project"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": false,
      "icon": "",
      "color": ""
    },
    {
      "id": "ms.vss-work.workitem-changed-event",
      "name": "Work item created or updated",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-work.workitem-changed-event",
      "eventPublisher": {
        "id": "ms.vss-work.work-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-work.work-event-category",
        "name": "Work"
      },
      "roles": [
        {
          "id": "System.AssignedTo",
          "name": "Assigned To"
        },
        {
          "id": "System.AssignedTo.Old",
          "name": "Previous Assignee"
        },
        {
          "id": "System.AssignedTo.New",
          "name": "Current Assignee"
        }
      ],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": true,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-work-item",
      "color": "#009CCC"
    }
  ]
}

By publisher

Sample request

GET https://dev.azure.com/fabrikam/_apis/notification/eventtypes?publisherId=ms.vss-code.git-event-publisher&api-version=7.1

Sample response

{
  "count": 8,
  "value": [
    {
      "id": "ms.vss-code.git-push-event",
      "name": "Code pushed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-push-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-code.code-git-event-category",
        "name": "Code (Git)"
      },
      "roles": [
        {
          "id": "pusher",
          "name": "Pushed by"
        }
      ],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-tfvc-commit",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-repository-created-event",
      "name": "Repository created",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-repository-created-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-repo-git",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-repository-renamed-event",
      "name": "Repository renamed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-repository-renamed-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-repo-git",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-repository-deleted-event",
      "name": "Repository deleted",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-repository-deleted-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-repo-git",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-import-succeeded-event",
      "name": "Import successful",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-import-succeeded-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "collection",
        "project"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "",
      "color": ""
    },
    {
      "id": "ms.vss-code.git-import-failed-event",
      "name": "Import failed",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-import-failed-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": null,
      "roles": [],
      "supportedScopes": [
        "collection",
        "project"
      ],
      "hasInitiator": false,
      "customSubscriptionsAllowed": true,
      "icon": "",
      "color": ""
    },
    {
      "id": "ms.vss-code.git-pullrequest-event",
      "name": "Pull request created or updated",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-pullrequest-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-code.code-git-event-category",
        "name": "Code (Git)"
      },
      "roles": [
        {
          "id": "author",
          "name": "Authored by"
        },
        {
          "id": "reviewer",
          "name": "Reviewer"
        },
        {
          "id": "changedReviewers",
          "name": "Changed reviewers"
        }
      ],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": true,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-tfvc-pull-request",
      "color": "#68217A"
    },
    {
      "id": "ms.vss-code.git-pullrequest-merge-event",
      "name": "Pull request merged",
      "url": "https://dev.azure.com/fabrikam/_apis/notification/Subscriptions/ms.vss-code.git-pullrequest-merge-event",
      "eventPublisher": {
        "id": "ms.vss-code.git-event-publisher",
        "subscriptionManagementInfo": {
          "serviceInstanceType": "00025394-6065-48ca-87d9-7f5672854ef7"
        }
      },
      "category": {
        "id": "ms.vss-code.code-git-event-category",
        "name": "Code (Git)"
      },
      "roles": [],
      "supportedScopes": [
        "project",
        "collection"
      ],
      "hasInitiator": true,
      "customSubscriptionsAllowed": true,
      "icon": "css://bowtie-icon bowtie-tfvc-merge",
      "color": "#68217A"
    }
  ]
}

Definitions

Name Description
InputValue

Information about a single value for an input

NotificationEventField

Encapsulates the properties of a filterable field. A filterable field is a field in an event that can used to filter notifications for a certain event type.

NotificationEventFieldOperator

Encapsulates the properties of a field type. It includes a unique id for the operator and a localized string for display name

NotificationEventFieldType

Encapsulates the properties of a field type. It describes the data type of a field, the operators it support and how to populate it in the UI

NotificationEventPublisher

Encapsulates the properties of a notification event publisher.

NotificationEventRole

Encapsulates the properties of an event role. An event Role is used for role based subscription for example for a buildCompletedEvent, one role is request by field

NotificationEventType

Encapsulates the properties of an event type. It defines the fields, that can be used for filtering, for that event type.

NotificationEventTypeCategory

Encapsulates the properties of a category. A category will be used by the UI to group event types

OperatorConstraint

Encapsulates the properties of an operator constraint. An operator constraint defines if some operator is available only for specific scope like a project scope.

SubscriptionFieldType
SubscriptionManagement

Encapsulates the properties needed to manage subscriptions, opt in and out of subscriptions.

ValueDefinition

Encapsulates the properties of a field value definition. It has the information needed to retrieve the list of possible values for a certain field and how to handle that field values in the UI. This information includes what type of object this value represents, which property to use for UI display and which property to use for saving the subscription

InputValue

Information about a single value for an input

Name Type Description
data

object

Any other data about this input

displayValue

string

The text to show for the display of this value

value

string

The value to store for this input

NotificationEventField

Encapsulates the properties of a filterable field. A filterable field is a field in an event that can used to filter notifications for a certain event type.

Name Type Description
fieldType

NotificationEventFieldType

Gets or sets the type of this field.

id

string

Gets or sets the unique identifier of this field.

name

string

Gets or sets the name of this field.

path

string

Gets or sets the path to the field in the event object. This path can be either Json Path or XPath, depending on if the event will be serialized into Json or XML

supportedScopes

string[]

Gets or sets the scopes that this field supports. If not specified then the event type scopes apply.

NotificationEventFieldOperator

Encapsulates the properties of a field type. It includes a unique id for the operator and a localized string for display name

Name Type Description
displayName

string

Gets or sets the display name of an operator

id

string

Gets or sets the id of an operator

NotificationEventFieldType

Encapsulates the properties of a field type. It describes the data type of a field, the operators it support and how to populate it in the UI

Name Type Description
id

string

Gets or sets the unique identifier of this field type.

operatorConstraints

OperatorConstraint[]

Encapsulates the properties of an operator constraint. An operator constraint defines if some operator is available only for specific scope like a project scope.

operators

NotificationEventFieldOperator[]

Gets or sets the list of operators that this type supports.

subscriptionFieldType

SubscriptionFieldType

value

ValueDefinition

Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI

NotificationEventPublisher

Encapsulates the properties of a notification event publisher.

Name Type Description
id

string

subscriptionManagementInfo

SubscriptionManagement

Encapsulates the properties needed to manage subscriptions, opt in and out of subscriptions.

url

string

NotificationEventRole

Encapsulates the properties of an event role. An event Role is used for role based subscription for example for a buildCompletedEvent, one role is request by field

Name Type Description
id

string

Gets or sets an Id for that role, this id is used by the event.

name

string

Gets or sets the Name for that role, this name is used for UI display.

supportsGroups

boolean

Gets or sets whether this role can be a group or just an individual user

NotificationEventType

Encapsulates the properties of an event type. It defines the fields, that can be used for filtering, for that event type.

Name Type Description
category

NotificationEventTypeCategory

Encapsulates the properties of a category. A category will be used by the UI to group event types

color

string

Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa

customSubscriptionsAllowed

boolean

eventPublisher

NotificationEventPublisher

Encapsulates the properties of a notification event publisher.

fields

<string,  NotificationEventField>

hasInitiator

boolean

icon

string

Gets or sets the icon representing this event type. Can be a URL or a CSS class. Example: css://some-css-class

id

string

Gets or sets the unique identifier of this event definition.

name

string

Gets or sets the name of this event definition.

roles

NotificationEventRole[]

Encapsulates the properties of an event role. An event Role is used for role based subscription for example for a buildCompletedEvent, one role is request by field

supportedScopes

string[]

Gets or sets the scopes that this event type supports

url

string

Gets or sets the rest end point to get this event type details (fields, fields types)

NotificationEventTypeCategory

Encapsulates the properties of a category. A category will be used by the UI to group event types

Name Type Description
id

string

Gets or sets the unique identifier of this category.

name

string

Gets or sets the friendly name of this category.

OperatorConstraint

Encapsulates the properties of an operator constraint. An operator constraint defines if some operator is available only for specific scope like a project scope.

Name Type Description
operator

string

supportedScopes

string[]

Gets or sets the list of scopes that this type supports.

SubscriptionFieldType

Value Description
boolean
dateTime
double
guid
history
html
identity
integer
picklistDouble
picklistInteger
picklistString
plainText
string
teamProject
treePath

SubscriptionManagement

Encapsulates the properties needed to manage subscriptions, opt in and out of subscriptions.

Name Type Description
serviceInstanceType

string (uuid)

url

string

ValueDefinition

Encapsulates the properties of a field value definition. It has the information needed to retrieve the list of possible values for a certain field and how to handle that field values in the UI. This information includes what type of object this value represents, which property to use for UI display and which property to use for saving the subscription

Name Type Description
dataSource

InputValue[]

Gets or sets the data source.

endPoint

string

Gets or sets the rest end point.

resultTemplate

string

Gets or sets the result template.