Hi Team,
I am reviewing the documentation and trying to obtain the reports. What file path should we provide? Please advise on this.
Document: https://www.scriptrunnerhq.com/help/example-scripts/send-current-active-and-inactive-user-details-in-email-body-and-csv-attachment-onPrem
//Set the file path final def filePath = ' '
//Set the filename final def filename = 'Monthly_Report'
//Set the email subject final def subject = 'Monthly report on All Active, Inactive, and Never Logged-In Users'
Hi @Lakshmi CH
You can create your "monthly-reports" folder under your JIRA_HOME and store the report files in this folder. Here is the code that may be helpful for this.
def jiraHome = ComponentAccessor.getComponent(JiraHome.class);
String localHome = jiraHome.getLocalHomePath();
String folderPath = localHome + File.separatorChar + "monthly-reports";
Hi @Tuncay Senturk _Snapbytes_ ,
I am getting this error when executing this script.
aused by: java.io.IOException: Permission denied at java_io_File$createNewFile$2.call(Unknown Source) at Script4.run(Script4.groovy:107)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must grant the user write permission. Otherwise it can't create folder/file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, Understand. @Tuncay Senturk _Snapbytes_ , Thank you so much for your quick response.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.