Package com.atlassian.jira.rest.v2.issue
Class IssueAttachmentsResource
java.lang.Object
com.atlassian.jira.rest.v2.issue.IssueAttachmentsResource
@Path("issue/{issueIdOrKey}/attachments")
@Produces("application/json")
public class IssueAttachmentsResource
extends Object
Issue attachments
- Since:
- 4.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorsConstructorDescriptionIssueAttachmentsResource
(JiraAuthenticationContext authContext, AttachmentService attachmentService, AttachmentManager attachmentManager, IssueUpdater issueUpdater, I18nHelper i18n, IssueFinder issueFinder, AttachmentJsonBeanConverter attachmentJsonBeanConverter) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
addAttachment
(String issueIdOrKey, Collection<com.atlassian.plugins.rest.api.multipart.FilePart> fileParts) Add one or more attachments to an issue.
-
Constructor Details
-
IssueAttachmentsResource
@Inject public IssueAttachmentsResource(JiraAuthenticationContext authContext, AttachmentService attachmentService, AttachmentManager attachmentManager, IssueUpdater issueUpdater, I18nHelper i18n, IssueFinder issueFinder, AttachmentJsonBeanConverter attachmentJsonBeanConverter)
-
-
Method Details
-
addAttachment
@POST @Consumes("multipart/form-data") public javax.ws.rs.core.Response addAttachment(@PathParam("issueIdOrKey") String issueIdOrKey, Collection<com.atlassian.plugins.rest.api.multipart.FilePart> fileParts) Add one or more attachments to an issue.- Parameters:
issueIdOrKey
- the issue that you want to add the attachments to- Returns:
- a JSON representation of the attachments added.
-