Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,117
Community Members
 
Community Events
165
Community Groups

Can i create a custom validator for the attachment field by using JMWE addon

Hi,

I want to allow only excel type of attachment in jira , when there is another type of attachment i am able to stop the issue transistion by using JMWE app, but i don't want jira to take the attachment itself if it is not Excel. Is this possible by adding the validator to the attachmenmt field?

 

1 answer

0 votes

No, there's no way to do this.  Validators don't apply to fields, and, even if they did, attachments is not a field.

You'd need to inject code into Jira's attachment field that could accept the upload, check the metadata to see what format the file is, and if it's not a recognisable spreadsheet, drop the file and tell the user that it's the wrong type.  I don't think that it is currently possible to write something for Cloud that could do that.

Hi @Nic Brough _Adaptavist_ ,

 

Thanks  , is it possible to inject code into Jira's attachment field that could accept the upload and check the metadata to see what format the file is in  Jira Data center?

See the second paragraph in my answer.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,932 views 37 49
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you