Skip to content
Discussion options

You must be logged in to vote

@simon-aira let me know if this works:

Unread count (server-side)

linear api '{ notificationsUnreadCount }'

All notifications

linear api '
query {
  notifications(first: 50) {
    nodes {
      id
      type
      title
      subtitle
      createdAt
      readAt
      url
      actor { name }
      ... on IssueNotification {
        issue { identifier title }
        comment { body }
      }
      ... on ProjectNotification {
        project { name }
        comment { body }
      }
      ... on PullRequestNotification {
        pullRequest { title number url }
      }
      ... on DocumentNotification {
        documentId
      }
    }
  }
}
'

Unread notifications (client-side filter)

The

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@simon-aira
Comment options

Answer selected by simon-aira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants