How to set Attachment field back to not Required
Symptoms
The attachment field is marked as required in all screens.
Diagnosis
The Attachment field has been marked as Required in the Field Configuration.
By default, the Attachment field does not have option to be set as Required.
Resolution
Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.
Run the following SQL query to check in which Field Configuration the Attachment field has been marked as Required :
SELECT fieldlayoutitem.ID, fieldlayout, fieldidentifier, isrequired, name FROM fieldlayoutitem LEFT JOIN fieldlayout ON fieldlayoutitem.fieldlayout = fieldlayout.id WHERE fieldidentifier = 'attachment';
If the row has isrequired=true , then the field configuration has the Attachment field marked as required.
- Backup the JIRA database.
Set the Attachment as Optional by run the SQL update in the JIRA database:
update fieldlayoutitem set isrequired='false' where fieldidentifier='attachment';
This query is to update Attachment field as Optional in all Field Configuration.
- Restart JIRA.