Plugin to Upload a File

Marcelo Castro January 10, 2018

Hello,

i want to upload a file by an own plugin. 

With JIRA 6.2.7 runs okay, but we want to Upgrade to 7.6.3.

How can we convert the Tempory Attachments to Real Attachments? 

Do i have to use the Method convertTemporaryAttachments from TemporaryWebAttachmentManager? If so, how can i instance the TemporaryWebAttachmentManager?

 

Or how can i find a tutorial to upload a File by a Plugin?

 

Thanks a lot!!

Marcelo

 

1 answer

1 accepted

0 votes
Answer accepted
Marcelo Castro January 11, 2018

I found it:

 

temporaryWebAttachmentManager.convertTemporaryAttachments(getLoggedInUser(), issue, filetoconvert);

Suggest an answer

Log in or Sign up to answer