Hi All,
We have to explore the defects in JIRA. We are able to consume the REST API shared by JIRA. defects are also getting logged. However, our requirement is to attach the file while exporting the issues to JIRA through REST API. However, based on the documentation, it seems that there is no provision for attaching the doc through REST API for Jira. Would like to confirm this. Is this really the case or please suggest how we can achieve this?
Regards,
Lokesh.
I'm not sure where you got that information from, but I regularly use Jira's REST API to attach documents (images, PDFs, Word docs, Excel spreadsheets) to a ticket. The point to note is you can't do it at the same time as creating the ticket, so I use the API to create a ticket, which returns the key (ABC-123). I then use this key and another API call (POST) to attach document(s).
See the answer from Jeff Caron here for a C# implementation which is what I've used so I know that it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.