Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the Attachment Directory as developer?

Stefan Bombrowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 16, 2025

I'm doing a compatiblility for jira 10 and the app uses AttachmentPathManager.ATTACHMENTS_DIR  to get to the attachment directory which is removed in jira 10. But with the changes to the api there is no alternative to this. The Documentation is telling me to use getAttachmentDirectory() but this method is not found in any class?! Did somebody found a solution for this problem?

Thanks in advance

EDIT: to clearify i need the path to the data/attachment

1 answer

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
January 21, 2025

Hi @Stefan Bombrowski 

I also checked the new API and could not find an appropriate use for the attachments directory. I believe the Atlassian Developer Community will be a better place to ask this question, as you may receive more answers there for this sort of development questions.

Stefan Bombrowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 28, 2025

Hi @Tuncay Senturk _Snapbytes_

your absolutly right. I did this already and find a workaround

Tuncay Senturk _Snapbytes_
Community Champion
January 28, 2025

I'm glad that you had a workaround. Thanks for sharing.

Like Stefan Bombrowski likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
10.3
TAGS
AUG Leaders

Atlassian Community Events