Hello everyone,
Is there a plugin/add-on for Jira Service Management (Cloud) that allows you to configure file uploads in a preceding form?
In the form I am currently working on, I would like to add one or two file upload fields. For example, I would like the upload through this form to allow only certain file types, such as PDF, JPG, PNG, and BMP, and also limit the maximum permitted file size.
Unfortunately, I haven't found a suitable solution in the Marketplace so far.
That’s why I’m now relying on your feedback and recommendations.
Best regards,Florian
Olha's route is a fair one. A forms app that runs regex or an extension check on the attachment field is one of the few ways to enforce a file-type rule, so that's a sound direction.
The piece missing from the thread is the native side. Out of the box, JSM Cloud forms give you no way to limit an attachment field to certain extensions. The field takes any file type and there's no allow/deny list to point it at. Atlassian tracks this as JRACLOUD-61024 and has said they won't build it in the near term, so it isn't arriving as a native setting any time soon.
Size sits in the same bucket. The maximum attachment size is a single site-wide value an admin sets under Settings > System > Advanced > Attachments, and it covers every attachment on the instance. There's no way to give one form field or one file type its own smaller cap.
So both of your requirements sit outside what the platform does on its own, which is why the Marketplace is where this lands. Smart Forms is one option; any forms/validation app that can check the attachment field against an allowed-extension pattern will do the same job.
If you'd rather stay off an app, the one native lever is an automation rule on request creation that deletes any attachment whose filename doesn't end in your allowed extensions (.pdf, .jpg, .png, .bmp). It only runs once the request exists, so the file uploads first and then gets stripped, and it does nothing for the size limit, so it's a partial fix at most.
Hi Florian,
You may try Smart Forms for Jira developed by my team, there are Regex validation for attachment field, which may help you validate the file type. There are also possibility to add several attachment fields with different file types validation.
Hi @Florian Ehlig
As @Gabriela - LeanZero mentions, this is certainly valid.
Even Atlassian described this as a work-around in a feature request around this topic.
https://jira.atlassian.com/browse/JRACLOUD-61024
Hi @Florian Ehlig,
Gabriela's summary of the native side holds. Jira has no allow list of file types for attachments (the suggestion JRACLOUD-61024 was closed as Won't Fix), and the only size limit is the global Attachment Size under Settings > System > Advanced > Attachments. In the form builder, the Attachment field offers a single validation, Response required.
An upload field with its own rules. I'm with Terano Apps, and we built File Field for exactly this: file upload custom fields that also work on the JSM portal. Each field has its own settings:
What the customer sees: a file that breaks a rule is refused before it uploads, with the reason for each file. It never reaches the request, so nothing has to be cleaned up afterwards.
Where it goes: File Field is a Jira custom field, so the form builder doesn't offer it, and no form field can be linked to it. Instead, you add it to the request type's Request form like any other field, and customers fill it in on the same portal page as your form. For two uploads with different rules, create two File Fields. I checked this on a request type that has a form attached.
File Field on the Atlassian Marketplace
the answer above is right, there's no native setting for this in Cloud. Atlassian even closed the allowlist request (JRACLOUD-61024) as Won't Fix in 2024.
One option to check: files uploaded through a form end up as attachments on the work item. Our app REGULIT works on exactly that level. You set which file types are allowed for the service desk space, and anything else comes off the request right after the upload, with a public comment telling the customer why. The portal can also show a banner with the accepted types, so people know before they upload.
It won't grey out the file picker in the form itself, so it's an after-upload check. But for most service desks that's what matters.
More Information:
https://regulit.app
https://marketplace.atlassian.com/apps/2426742860/regulit-attachment-control-storage-connector-for-jira?hosting=cloud&tab=overview
Hope that helps!
Best regards
Alexander
Full disclosure: I work at MESKRU, the team behind REGULIT.
It looks like you're new here. Sign in or register to get started.