How to set Attachment field back to not Required

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The attachment field is marked as required in all screens.

Diagnosis

The Attachment field has been marked as Required in the Field Configuration. 

(info) 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.

  1. 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';

    (info) If the row has isrequired=true , then the field configuration has the Attachment field marked as required.

  2. Backup the JIRA database.
  3. Set the Attachment as Optional by run the SQL update in the JIRA database:

    update fieldlayoutitem set isrequired='false' where fieldidentifier='attachment';

    (info) This query is to update Attachment field as Optional in all Field Configuration.

  4. Restart JIRA.


Last modified on Mar 21, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.