Skip to content

Comment ​

Supertype for IssueComment and Body. Represents a text block in the Timeline. Keeps track when it was last edited and by who, but does not keep track of the change history. READ is granted if READ is granted on issue.

graphql
interface Comment implements AuditedNode, BaseNode, Node, TimelineItem {
  answeredBy(
    after: String
    before: String
    filter: IssueCommentFilterInput
    first: Int
    last: Int
    orderBy: [IssueCommentOrder!]
    skip: Int
  ): IssueCommentConnection!
  body: String!
  bodyLastEditedAt: DateTime!
  bodyLastEditedBy: User!
  createdAt: DateTime!
  createdBy: User!
  hasPermission(
    permission: AllPermissionEntry
  ): Boolean!
  id: ID!
  issue: Issue
  lastModifiedAt: DateTime!
  lastModifiedBy: User!
  parentItem: ParentTimelineItem
}

Fields ​

Comment.answeredBy ● IssueCommentConnection! non-null object ​

IssueComments which answer this Comment.

Comment.answeredBy.after ● String scalar ​

Get only items after the cursor

Comment.answeredBy.before ● String scalar ​

Get only items before the cursor

Comment.answeredBy.filter ● IssueCommentFilterInput input ​

Filter for specific items in the connection

Comment.answeredBy.first ● Int scalar ​

Get the first n items. Must not be used if before is specified

Comment.answeredBy.last ● Int scalar ​

Get the last n items. Must not be used if after is specified

Comment.answeredBy.orderBy ● [IssueCommentOrder!] list input ​

Order in which the items are sorted

Comment.answeredBy.skip ● Int scalar ​

Skips n items. First or last MUST be specified, is otherwise ignored

Comment.body ● String! non-null scalar ​

The text of the Comment. Supports GFM (GitHub Flavored Markdown). Updates cause lastEditedAt and lastEditedBy to change. Empty String if IssueComment is deleted.

Comment.bodyLastEditedAt ● DateTime! non-null scalar ​

Keep track when the body of the Comment was last updated. If not updated yet, the DateTime of creation.

Comment.bodyLastEditedBy ● User! non-null interface ​

The User who last edited the body of this Comment. If not edited yet, the creator of the Comment.

Comment.createdAt ● DateTime! non-null scalar ​

The DateTime this entity was created at.

Comment.createdBy ● User! non-null interface ​

The User who created this entity.

Comment.hasPermission ● Boolean! non-null scalar ​

Checks if the current user has a specific permission on this Node

Comment.hasPermission.permission ● AllPermissionEntry enum ​

The permission to check for

Comment.id ● ID! non-null scalar ​

The unique id of this node

Comment.issue ● Issue object ​

The Issue this TimelineItem is part of.

Comment.lastModifiedAt ● DateTime! non-null scalar ​

The DateTime this entity was last modified at.

Comment.lastModifiedBy ● User! non-null interface ​

The User who last modified this entity.

Comment.parentItem ● ParentTimelineItem interface ​

If existing, the parent TimelineItem

Interfaces ​

AuditedNode interface ​

Node which provides auditing information, which can e.g. be used for the sync. When it was created and last modified, if the it is already deleted, and by who it was created and last modified. A modification is any change of a field on the node itself and a change of a relation (add or removed). A change on a related related node is not a modification.

BaseNode interface ​

Shared extensions to the node type.

Node interface ​

Base class of all nodes

TimelineItem interface ​

Supertype of all timeline items. Always part of an Issue.

Member Of ​

IssueComment object

Implemented By ​

Body object ● IssueComment object

Released under the MIT License.