Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

1.5 KB
Raw Blame
# Schema: EmojiReactionModel
---
type: object
properties:
  _type:
    type: string
    enum:
      - "EmojiReaction"
  id:
    type: string
    description: "Emoji reaction id (format: reactable_id-reaction)"
    example: "1-thumbs_up"
  reaction:
    type: string
    description: The reaction identifier
    example: "thumbs_up"
  emoji:
    type: string
    description: The emoji character
    example: "👍"
  reactionsCount:
    type: integer
    description: Number of users who reacted with this emoji
    minimum: 1
    example: 3
  firstReactionAt:
    type: string
    format: date-time
    description: Time of the first reaction
  _links:
    type: object
    properties:
      self:
        allOf:
          - $ref: './link.yml'
          - description: This emoji reaction
      reactable:
        allOf:
          - $ref: './link.yml'
          - description: The activity this emoji reaction belongs to
      reactingUsers:
        type: array
        items:
          allOf:
            - $ref: './link.yml'
            - description: The users who reacted with this emoji
example:
  _type: "EmojiReaction"
  id: "1-thumbs_up"
  reaction: "thumbs_up"
  emoji: "👍"
  reactionsCount: 3
  firstReactionAt: "2024-04-08T15:37:19.275Z"
  _links:
    self:
      href: "/api/v3/emoji_reactions/1-thumbs_up"
    reactable:
      href: "/api/v3/activities/1"
    reactingUsers:
      - href: "/api/v3/users/435"
        title: "John Doe"
      - href: "/api/v3/users/436"
        title: "Jane Smith"
      - href: "/api/v3/users/437"
        title: "Bob Johnson"