-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
Creating Jira issues with attachments fails #386
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. |
It would also be nice if there were any attachment examples in the examples dir. |
It seems you cannot add attachments while you're creating the issue, the issue must be created before. I've created a little example about how to attach a file on an issue: https://docs.go-atlassian.io/jira-software-cloud/issues/attachments#add-attachment |
Thank you very much! Indeed creating issues with attachments in one go won't work. I found the relevant info after creating this issue: "Creating an issue required posting JSON payload. Adding an attachment required posting a MultiPartMime. Both the same time is not possible at the moment." I changed my code like this:
Still good to have a working example inside the examples folder, though. |
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. |
Thank you very much for the information. It was a one-time project I worked on at the previous company I was working for. Nonetheless, the project went well and your library was a substantial part of that project. I will look into it again in the future if I come across a project dealing with Jira. |
Describe the bug
Attachments are not working and result in the following response from Jira:
To Reproduce
Example code which fails:
Expected behavior
The attachments should work when creating an issue.
Your Environment
Include as many relevant details about the environment you experienced the problem in
Additional context
Our Jira instance requires the following (some are custom fields and attachments) when we create an issue:
The text was updated successfully, but these errors were encountered: