Skip to content

Commit 66869ca

Browse files
committed
jira issue type default will be "Tâche" if the language is set to french
1 parent bffae86 commit 66869ca

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

router/builders.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ func buildJiraOutput(sourceSettings *data.OutputSettings) *outputs.JiraAPI {
9898
Summary: sourceSettings.Summary,
9999
}
100100
if jiraApi.Issuetype == "" {
101-
jiraApi.Issuetype = IssueTypeDefault
101+
if sourceSettings.Template == "vuls-jira-fr" {
102+
jiraApi.Issuetype = FrenchIssueTypeDefault
103+
} else {
104+
jiraApi.Issuetype = IssueTypeDefault
105+
}
102106
}
103107
if jiraApi.Priority == "" {
104108
jiraApi.Priority = PriorityDefault

router/router.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ import (
2727
)
2828

2929
const (
30-
IssueTypeDefault = "Task"
31-
PriorityDefault = "High"
30+
IssueTypeDefault = "Task"
31+
FrenchIssueTypeDefault = "Tâche"
32+
PriorityDefault = "High"
3233

3334
ServiceNowTableDefault = "incident"
3435
AnonymizeReplacement = "<hidden>"

0 commit comments

Comments
 (0)