description:Removes an issue. If the user has the `MANAGE_ISSUES` permission, any issue can be removed. Otherwise, only a users own issues can be removed.
tags:
- issue
parameters:
- in:path
name:issueId
description:Issue ID
required:true
example:'1'
schema:
type:string
responses:
'204':
description:Succesfully removed issue
/issue/{issueId}/comment:
post:
summary:Create a comment
description:|
Creates a comment and returns associated issue in JSON format.
tags:
- issue
parameters:
- in:path
name:issueId
required:true
schema:
type:number
example:1
requestBody:
required:true
content:
application/json:
schema:
type:object
properties:
message:
type:string
required:
- message
responses:
'200':
description:Issue returned with new comment
content:
application/json:
schema:
$ref:'#/components/schemas/Issue'
/issueComment/{commentId}:
get:
summary:Get issue comment
description:|
Returns a single issue comment in JSON format.
tags:
- issue
parameters:
- in:path
name:commentId
required:true
schema:
type:string
example:1
responses:
'200':
description:Comment returned
content:
application/json:
schema:
$ref:'#/components/schemas/IssueComment'
put:
summary:Update issue comment
description:|
Updates and returns a single issue comment in JSON format.
tags:
- issue
parameters:
- in:path
name:commentId
required:true
schema:
type:string
example:1
requestBody:
required:true
content:
application/json:
schema:
type:object
properties:
message:
type:string
responses:
'200':
description:Comment updated
content:
application/json:
schema:
$ref:'#/components/schemas/IssueComment'
delete:
summary:Delete issue comment
description:|
Deletes an issue comment. Only users with `MANAGE_ISSUES` or the user who created the comment can perform this action.
tags:
- issue
parameters:
- in:path
name:commentId
description:Issue Comment ID
required:true
example:'1'
schema:
type:string
responses:
'204':
description:Succesfully removed issue comment
/issue/{issueId}/{status}:
post:
summary:Update an issue's status
description:|
Updates an issue's status to approved or declined. Also returns the issue in a JSON object.
Requires the `MANAGE_ISSUES` permission or `ADMIN`.