Leiga
  1. Comment Module(comment)
Leiga
  • Authorize Module(authorize)
    • Get Permanent Token
      POST
    • Get Access Token
      POST
    • Refresh Access Token
      POST
  • User Module(user)
    • Get project member list (without pagination)
      GET
    • Get Project member list (with pagination)
      GET
    • Add Project Members
      POST
    • Remove Project Members
      DELETE
  • Organization Module(org)
    • Get Organization Users (with pagination)
      GET
    • Enable Organization User
      POST
    • Disable Organization User
      POST
    • Remove Organization User
      DELETE
  • Project Module(project)
    • Get Project Template List
      GET
    • Get Project List
      GET
    • Get Project Overview Template
      GET
    • New Project
      POST
    • Update Project
      PATCH
    • Get Project Information By Project Key
      GET
    • Get Project Information
      GET
    • Change Project Members Role
      POST
    • Get Project Roles
      GET
    • Get Project Roles
      POST
  • Issue Module(issue)
    • Get Issue Type List
    • Get Issue Scheme
    • Get Issue Fields
    • Get Issue Field Detail
    • Batch Add Issue
    • New Issue
    • Batch Update Issue
    • Update Issue
    • Get Issue Detail V2
    • Get Issue Detail
    • Get Issue Detail By Issue Number
    • Remove Issue
    • Batch Remove Issue
    • Query Issue List
    • Query Issue List V2
    • Get Project Issue Filter Fields
    • Get Issue Select Options
    • Get Issue Relations
    • Add Issue Relation
    • Remove Issue Relation
    • Batch Add Subtasks
    • Remove Subtask
    • Update Subtask
    • Get Subtask List
    • Update Subtask Status
    • Get Subtask Field List
    • Add Labour Record
    • Update Labour Record
    • Remove Labour Record
    • Labour Record List
    • Get Trash Select Option List(The free version does not support)
    • Get Trash List(The free version does not support)
    • Restore Issue(The free version does not support)
    • Get Finished Issue List
  • Sprint Module(sprint)
    • New Sprint
    • Update Sprint
    • Remove Sprint
    • Get Sprint Detail
    • Get Project Sprint List
  • Workflow Module(workflow)
    • Query Project Workflow List
    • Get State Transition List
  • Tag Module(tag)
    • New Tag
    • Update Tag
    • Remove Tag
    • Get Tag List
  • Epic Module(epic)
    • Epic Filter Options
    • Get Epic List
    • Epic Related Issue List
    • Get Epic Field List
    • Get Epic Field Detail
    • New Epic
    • Update Epic
    • Remove Epic
    • Get Epic Detail
    • Add Issues To Epic
  • Version Module(version)
    • Get Version Status List
    • Get Version Owner Options
    • Get Version List
    • New Version
    • Update Version
    • Remove Version
    • Release Version
    • Cancel Release Version
    • Archive Version
    • Cancel Archive Version
    • Get Version Details
    • Add Issue To Version
    • Remove Issue From Version
    • Version Related Issue List
  • Webhook Module(webhook)
    • Get Webhook Type List
    • Get Webhook Event List
    • New Webhook
    • Remove Webhook
    • Update Webhook
    • Get Webhook Detail
    • Query Webhook List
  • Comment Module(comment)
    • New Comment
      POST
    • Update Comment
      PATCH
    • Remove Comment
      DELETE
    • Get Comment List
      POST
    • Update Comment Sticker
      PATCH
    • List Comment Sticker
      POST
  • File Module(file)
    • Upload File
    • Download File
    • Remove File
    • Get File List
    • Bind File
  • Personal Message Module(msg)
    • Get Personal Message List
  1. Comment Module(comment)

Get Comment List

POST
https://app.leiga.com/openapi/api/comment/page
Comment Module(comment)
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.leiga.com/openapi/api/comment/page' \
--header 'accessToken: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "commentModule": "issue",
    "linkId": 1,
    "pageNumber": 1,
    "pageSize": 10
}'
Response Response Example
{
  "code": "0",
  "data": {
    "extend": {
      "totalCommentNo": 2
    },
    "total": 2,
    "list": [
      {
        "deleteFlag": 0,
        "stickerVOList": [
          {
            "containsSelf": true,
            "replyUserList": [
              {
                "name": "eee",
                "avatar": "ddd",
                "id": 3,
                "orgUserId": 4
              }
            ],
            "stickerCode": "fff"
          }
        ],
        "commentAttributes": {
          "commentAtInfos": []
        },
        "createTime": 1660724394130,
        "subReplies": [],
        "commentUser": {
          "headPortrait": "aaa",
          "userName": "bbb",
          "userId": 2
        },
        "commentId": 1,
        "files": [],
        "updateTime": 1660724394130,
        "content": "ccc"
      },
      {
        "deleteFlag": 0,
        "stickerVOList": [],
        "createTime": 1660724446300,
        "subReplies": [
          {
            "deleteFlag": 0,
            "stickerVOList": [],
            "createTime": 1661213779644,
            "groupId": 5,
            "commentUser": {
              "headPortrait": "jjj",
              "userName": "kkk",
              "userId": 8
            },
            "replyId": 5,
            "commentId": 7,
            "files": [],
            "updateTime": 1661213779644,
            "linkedIssueDeleteFlag": 0,
            "content": "lll"
          }
        ],
        "commentUser": {
          "headPortrait": "ggg",
          "userName": "hhh",
          "userId": 6
        },
        "commentId": 5,
        "files": [],
        "updateTime": 1660724446300,
        "content": "iii"
      }
    ]
  }
}

Request

Header Params
Content-Type
string 
required
Example:
application/json
accessToken
string 
required
Example:
{{accessToken}}
Body Params application/json
commentModule
string 
required
Comment Module (.eg. issue)
linkId
integer <int64>
required
Link ID
pageNumber
integer <int32>
optional
Page Number
pageSize
integer <int32>
optional
Page Size
Examples

Responses

🟢200OK
application/json
Body
commentNo
integer <int32>
optional
Comment Count
commentAttributes
object 
optional
Comment Attributes
commentAtInfos
array [object] 
optional
Comment @User Info
plainContent
string 
optional
Comment Content(plain content)
subReplies
array [object] 
optional
Reply Comment List
commentUser
object 
optional
Comment User Info
userName
string 
optional
User Name
userId
integer <int64>
optional
User ID
accountEnabled
string <byte>
optional
Account Enabled (0:No,1:Yes)
<= 4 characters
updateTime
string <date>
optional
Last Update Time
content
string 
optional
Comment Content
deleteFlag
string <byte>
optional
Deleted (1:Yes, 0:No)
<= 4 characters
stickerVOList
array [object] 
optional
Sticker List
createBy
integer <int64>
optional
Comment Creator
createTime
string <date>
optional
Creation Time
commentId
integer <int64>
optional
Comment ID
files
array [object] 
optional
Attachments
Previous
Remove Comment
Next
Update Comment Sticker
Built with