Created
June 3, 2025 11:42
-
-
Save shairyar/ac7454296f7f1925b8e853088c3d4cc0 to your computer and use it in GitHub Desktop.
Fetch the list of tasks assigned to a user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query AssignedIncidentsQuery($appId: String, $limit: Int, $offset: Int, $state: [IncidentStateEnum!], $severity: IncidentSeverityEnum, $query: String, $assigneeIds: [String!]) { | |
viewer { | |
id | |
incidents( | |
limit: $limit | |
offset: $offset | |
appId: $appId | |
state: $state | |
severity: $severity | |
query: $query | |
assigneeIds: $assigneeIds | |
) { | |
... on ExceptionIncident { | |
app { | |
id | |
name | |
environment | |
organization { | |
id | |
slug | |
__typename | |
} | |
__typename | |
} | |
assignees { | |
...AssigneeFragment | |
__typename | |
} | |
__typename | |
} | |
... on AnomalyIncident { | |
id | |
number | |
lastOccurredAt | |
severity | |
alertState | |
state | |
tags { | |
key | |
value | |
__typename | |
} | |
trigger { | |
name | |
__typename | |
} | |
app { | |
id | |
name | |
environment | |
organization { | |
id | |
slug | |
__typename | |
} | |
__typename | |
} | |
assignees { | |
...AssigneeFragment | |
__typename | |
} | |
__typename | |
} | |
... on LogIncident { | |
id | |
number | |
lastOccurredAt | |
severity | |
state | |
trigger { | |
name | |
query | |
__typename | |
} | |
app { | |
id | |
name | |
environment | |
organization { | |
id | |
slug | |
__typename | |
} | |
__typename | |
} | |
assignees { | |
...AssigneeFragment | |
__typename | |
} | |
__typename | |
} | |
... on PerformanceIncident { | |
id | |
number | |
lastOccurredAt | |
actionNames | |
namespace | |
severity | |
state | |
hasSamplesInRetention | |
app { | |
id | |
name | |
environment | |
organization { | |
id | |
slug | |
__typename | |
} | |
__typename | |
} | |
assignees { | |
...AssigneeFragment | |
__typename | |
} | |
__typename | |
} | |
__typename | |
} | |
__typename | |
} | |
} | |
fragment AssigneeFragment on User { | |
id | |
name | |
initials | |
emailHash | |
gravatarEnabled | |
__typename | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Query vars