Hello everyone,
Question: we'd like to create a request where employee can upload their expenses by raising a JIRA request and attaching the file to the request.
Is there a way that the file being uploaded can be automatically renamed to the naming convention of our choice? (e.g. Employee number_Name_Expense claim_date).
We can do this using google forms, but it would be great if you can tell me how to set this up on JIRA?
You could script the rename with an automation rule once the attachment is created, but if you need to clean up or standardize files before they even hit Jira, I’ve used renamer.io to batch-rename uploads into a pattern like EmployeeNumber_Name. It handles counters and regex easily, so I just prep everything in one go and let Jira pick up already clean files.
Hi @Kristina Kesen , welcome to the Atlassian Community!
EDIT: I may have misread your original question however the below approach might still be useful, maybe it isn't.
I've found this ticket currently open with the Atlassian Team: https://jira.atlassian.com/browse/JRACLOUD-25060
It appears that at the moment this isn't a possibility to do within Jira natively from what I've found. A 3rd party add-on solution might yield more success.
You can achieve this with Automation (can also use ScriptRunner add-on but lets keep it simple for now).
I've tested this just briefly (you can tweak it as you see fit).
Step 1: Select your trigger (I used When: Issue Created)
Step 2: Select condition ( I used to check if attachment exists AND summary contains "Expense Report"
Step 3: Select action (Then: Edit Issue Fields. Select Summary and use smart values).
For the smart values I used the following:
{{assignee.accountId}}_{{creator.displayName}}_{{now.jiraDate}}
See below:
Hope this helps.
Kind Regards,
Ash
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.