Forums

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

couldn't rename an attachment file

Kou Ssi
Contributor
December 4, 2023

i am using the pluggin power script for jira to access a file and rename it via the code 
everything seems okay (syntax and execution) however the routine renamefile() is returning always a false value . 

So my question is , do i need to open a file before renaming it ? what can be the cause of this problem 

1 answer

0 votes
Anna Hryhoruk _Appfire_
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.
December 4, 2023

Hello @Kou Ssi ,
Did you check your Jira log for any error messages? If not yet, please look into it. There may be something helpful. 
I assume one of the problems may be " file is not accessible (request denied)". If that`s the case, please visit this SILSecurityException when accessing files for more details.
Also, pay attention that you need to use forward slashes ( /) for file paths. 
If that doesn`t help, please provide the script you use and if there are any errors in Jira log. 

Best Regards,
Anna

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events