Skip to content

Commit

Permalink
add new tag handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Sep 10, 2024
1 parent 230dc2f commit e16465e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tools/cmd/sync-github-issue-to-jira/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ type IssueFields struct {
StepsToReplicate string `json:"customfield_17004"`
UserID string `json:"customfield_21112"`
Template IssueValue `json:"customfield_21039"`
AccountID string `json:"customfield_21113"`
AccountName string `json:"customfield_23208"`
AccountTag string `json:"customfield_18304"`
ZoneID string `json:"customfield_21111"`
ZoneTag string `json:"customfield_23209"`
ZoneName string `json:"customfield_20502"`
IssueType IssueName `json:"issuetype"`
Components []IssueName `json:"components"`
}
Expand Down Expand Up @@ -91,6 +97,7 @@ var (
"service/zero_trust_devices",
"service/lists",
"service/firewall",
"service/rulesets",
}

// Mapping of service label to owning internal team.
Expand Down Expand Up @@ -270,6 +277,12 @@ func main() {
StepsToReplicate: "n/a",
UserID: "0",
Template: IssueValue{Value: "Yes"},
AccountID: "0",
AccountName: "n/a",
AccountTag: "0",
ZoneID: "0",
ZoneTag: "0",
ZoneName: "n/a",
}}

res, err := json.Marshal(newIssue)
Expand Down

0 comments on commit e16465e

Please sign in to comment.