Skip to main content

Retrieve Email Alerts

Getting an Email Alert by id

The following query retrieves an email alert by id:

query GetTestSuiteEmailAlert($testSuiteEmailAlertId: ObjectID!) {
node(id: $testSuiteEmailAlertId) {
... on TestSuiteEmailAlert {
id
email
alertTypes
}
}
}

Try in explorer

Getting the Email Alerts linked to a given test suite

The following query retrieves the email alerts linked to a given test suite:

query GetTestSuiteEmailAlerts($testSuiteId: ObjectID!) {
node(id: $testSuiteId) {
... on TestSuite {
testSuiteEmailAlerts(last: 100) {
nodes {
id
email
alertTypes
}
}
}
}
}

Try in explorer