swimlane.core.resources.comment module

class swimlane.core.resources.comment.Comment(*args, **kwargs)[source]

Bases: APIResource

Abstraction of a single comment from a comment field

user

UserGroup instance of user who created the comment

Type:

UserGroup

created_date

Pendulum datetime of when comment was created

Type:

pendulum.DateTime

message

Comment message body

Type:

str

for_json()[source]

Called by CommentField.for_json(), returns relevant Comment attributes in JSON-compatible format