Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active August 6, 2021 12:38
Show Gist options
  • Save percybolmer/e10b7733cf3ad78404bfdef2263f4d2a to your computer and use it in GitHub Desktop.
Save percybolmer/e10b7733cf3ad78404bfdef2263f4d2a to your computer and use it in GitHub Desktop.
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