Skip to content

Commit

Permalink
feat: add labels to the ticket creation
Browse files Browse the repository at this point in the history
  • Loading branch information
seilagamo committed Apr 18, 2024
1 parent 108a6c0 commit e76dcfe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
12 changes: 11 additions & 1 deletion docs/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,13 @@
"ticket_type": {
"type": "string",
"description": "Issue type of the ticket"
},
"labels": {
"type": "array",
"items": {
"type": "string",
"description": "Jira labels"
}
}
}
},
Expand Down Expand Up @@ -327,7 +334,10 @@
"summary": "Outdated Packages in Docker Image",
"description": "Long text with a detailed description of the ticket.",
"project": "PTVUL",
"ticket_type": "Vulnerability"
"ticket_type": "Vulnerability",
"labels": [
"potential"
]
}
},
"ticketResponseExample": {
Expand Down
11 changes: 8 additions & 3 deletions docs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ components:
ticket_type:
type: string
description: Issue type of the ticket
labels:
type: array
items:
type: string
description: Jira labels
ticketResponse:
allOf:
- type: object
Expand Down Expand Up @@ -190,9 +195,7 @@ components:
properties:
id:
type: string
description: >-
Identification of the relationship between a finding and a ticket
for a team in uuid format
description: Identification of the relationship between a finding and a ticket for a team in uuid format
finding_id:
type: string
description: Finding identification in uuid format
Expand All @@ -215,6 +218,8 @@ components:
description: Long text with a detailed description of the ticket.
project: PTVUL
ticket_type: Vulnerability
labels:
- potential
ticketResponseExample:
value:
id: 875abf8c-f9a2-473a-8623-5a85c85a3af9
Expand Down

0 comments on commit e76dcfe

Please sign in to comment.