I am in the process of updating my Jira test and production servers. The test server is now updated but it caused all of the scripts in my script runner to break. Here is an example of one of the errors and the code associated with it. I have also included below the versions of my test and production servers along with the versions of their script runners.
I have the following import associated with the FileAttachments function:
Jira Prod: v9.0.0
Prod ScriptRunner: 6.42.0
Jira Test: v9.9.1
Test ScriptRunner: 8.7.1
[Static type checking] - Cannot find matching method com.atlassian.jira.issue.attachment.FileAttachments#getAttachmentDirectoryForIssue(java.io.File, java.lang.String, java.lang.String). Please check if the declared type is correct and if the method exists.
Possible solutions: getAttachmentDirectoryForIssue(com.atlassian.dc.filestore.api.FileStore$Path, java.lang.String, java.lang.String)
Hi @Lisa Sun have you been able to solve that? Is it really ScriptRunner related or Jira API (com.atlassian.dc.filestore.api.FileStore.Path)?
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.