Forums

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

Cannot resolve class com.atlassian.jira.issue.attachment.FileSystemAttachmentDirectoryAccessor

serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2025 edited

Dear all.

In our current Jira Data Center 9.12.15 with Script runner 8.36 we have a fully working script define as below :

 

import com.atlassian.jira.component.ComponentAccessor

import com.atlassian.jira.issue.IssueFieldConstants

import com.atlassian.jira.issue.MutableIssue

import com.atlassian.jira.issue.attachment.FileSystemAttachmentDirectoryAccessor

import com.opensymphony.workflow.InvalidInputException

def log_edr = log.getLogger("com.edr.workflow.postfunction.GA.setAttachementsRequired_OnlyForCH")

def attachmentDirectoryAccessor = ComponentAccessor.getComponent(FileSystemAttachmentDirectoryAccessor)

def temporaryAttachmentDirectory = attachmentDirectoryAccessor.getTemporaryAttachmentDirectory()
In our staging instance we have upgrade our JIRA DC to version 10.4.3 for security issue with script runner 9.9 version
After this change we notice that our same script above is not working anymore and the reason is that we have  the class below which cannot be resolved as it should:

 

import com.atlassian.jira.issue.attachment.FileSystemAttachmentDirectoryAccessor


Does anyone of you meet teh same behaviour and share some idea how to solve it ?

Does this class FileSystemAttachementDirectoryAccessor  has been mode to an other lib ?

Thanks for your help

regards

1 answer

1 vote
Tuncay Senturk
Community Champion
April 7, 2025

Hi @serge calderara 

Atlassian has made significant changes in Jira DAta Center 10.x, you can check the changelog here

It is likely that the class FileSystemAttachmentDirectoryAccessor has been removed as part of these changes. See this thread, it may help your issue.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events