Last active
August 6, 2021 12:38
-
-
Save percybolmer/e10b7733cf3ad78404bfdef2263f4d2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i := jira.Issue{ | |
Fields: &jira.IssueFields{ | |
Assignee: &jira.User{ | |
Name: "myuser", | |
}, | |
Reporter: &jira.User{ | |
Name: "youruser", | |
}, | |
Description: "Test Issue", | |
Type: jira.IssueType{ | |
Name: "Bug", | |
}, | |
Project: jira.Project{ | |
Key: "PROJ1", | |
}, | |
Summary: "Just a demo issue", | |
}, | |
} | |
issue, _, err := jiraClient.Issue.Create(&i) | |
if err != nil { | |
panic(err) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment