Skip to main content

Body

Main Body of an Issue. Each Issue has exactly one Body. 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.

type Body implements AuditedNode, BaseNode, Comment, 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

Body.answeredBy ● IssueCommentConnection! non-null object

IssueComments which answer this Comment.

Body.answeredBy.after ● String scalar

Get only items after the cursor

Body.answeredBy.before ● String scalar

Get only items before the cursor

Body.answeredBy.filter ● IssueCommentFilterInput input

Filter for specific items in the connection

Body.answeredBy.first ● Int scalar

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

Body.answeredBy.last ● Int scalar

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

Body.answeredBy.orderBy ● [IssueCommentOrder!] list input

Order in which the items are sorted

Body.answeredBy.skip ● Int scalar

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

Body.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.

Body.bodyLastEditedAt ● DateTime! non-null scalar

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

Body.bodyLastEditedBy ● User! non-null interface

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

Body.createdAt ● DateTime! non-null scalar

The DateTime this entity was created at.

Body.createdBy ● User! non-null interface

The User who created this entity.

Body.hasPermission ● Boolean! non-null scalar

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

Body.hasPermission.permission ● AllPermissionEntry enum

The permission to check for

Body.id ● ID! non-null scalar

The unique id of this node

Body.issue ● Issue object

The Issue this TimelineItem is part of.

Body.lastModifiedAt ● DateTime! non-null scalar

The DateTime this entity was last modified at.

Body.lastModifiedBy ● User! non-null interface

The User who last modified this entity.

Body.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.

Comment interface

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.

Node interface

Base class of all nodes

TimelineItem interface

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

Member of

Issue object ● UpdateBodyPayload object

Implemented by

PublicTimelineItem union