I'm building plugin where I required to store users file and later allow them to access. I am currently able to store file on jira's home directory but to access file I have to restart server otherwise I am getting 404 error.
So it will be very helpful if anyone can tell me path should use to store file on server and how to access them in front-end ?
Thanks in advance.
Community moderators have prevented the ability to post new answers.
I'd use the attachments functions, they already do exactly that, without needing a restart.
Can you please explain in depth. An example will be great help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A simple way to do this would be to have issues for the users to attach files to. In your code, you can use https://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/AttachmentManager.html to handle them, saving you having to write all the upload/download/store code yourself. If you don't want them as attachments, you're going to need to find or write a whole subsystem to do storage inside JIRA (I've not done that before, so I'm unsure where to start)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.