-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[issue] - Example "Create an Issue" Failing #308
Comments
Hi! Thank you for taking the time to create your first issue! Really cool to see you here for the first time. Please give us a bit of time to review it. |
I'm experiencing a very similar issue except that I can use the Assignee field, just not the Reporter field. Additionally, when I remove the Reporter field and use jc.Issue.Create(), the issue is created successfully with all fields populated as expected but the issue struct returned from the call has Fields = nil. If it helps, my environment: |
+1 |
Thank you for your issue your issue report. I appreciate your patience as we work to get a new maintainer up to speed to help out on this project. |
After looking at the Jira docs, it looks like they require an account id for assignee and reporter. Testing it out with the following snip worked: Assignee: &jira.User{
AccountID: "<A Jira User ID here>",
},
Reporter: &jira.User{
AccountID: "<A Jira User ID here>",
}, |
Hey, I am very sorry that this issue has been open for a long time with no final solution. We work on this project in our spare time, and sometimes, other priorities take over. This is the typical open source dilemma. However, there is news: We are kicking off v2 of this library 🚀To provide visibility, we created the Road to v2 Milestone and calling for your feedback in #489 The development will take some time; however, I hope you can benefit from the changes. What does this mean for my issue?We will work on this issue indirectly. Final wordsThanks for using this library. |
Describe the bug
The example on "Create an Issue" runs into a panic with a status code:
400
.Formatting tips: GitHub supports Markdown: https://guides.github.com/features/mastering-markdown/
To Reproduce
Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include configuration, logs, etc. to reproduce, if relevant.
Expected behavior
The expected behavior should be that it creates the ticket and exits the program successfully.
Possible Solution
Removing the
Reporter
andAssignee
field from theIssueFields
creates the ticket as expected but another situation occurs. Apparently dereferencing the pointers fromissue
toi
in the print statement causes anotherpanic: runtime error: invalid memory address or nil pointer dereference
as seen below.Changing
issues.Fields.Summary
toi.Fields.Summary
gets the entire example to be working as expected.Your Environment
Include as many relevant details about the environment you experienced the problem in
go version
): go1.14.6 darwin/amd64The text was updated successfully, but these errors were encountered: