Forums

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

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

Sunilkumar k
Contributor
June 14, 2022

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
Nic Brough -Adaptavist-
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.
June 14, 2022

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.

Sunilkumar k
Contributor
June 14, 2022

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?

Nic Brough -Adaptavist-
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.
June 15, 2022

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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events