Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-66576

Field Configuration: hiding Attachments field doesn't work for issue view screen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 7.3.8, 7.4.5, 7.2.12, 7.5.3, 7.6.2, 7.6.9, 8.5.2
    • Issue - Attachments

      Summary

      Hiding "Attachment" field on the "Field Configuration" screen doesn't affect UI issue view screen. The "Attachments" section is still visible and attached files are accessible.

      Environment

      All JIRA versions.

      Steps to Reproduce

      1. As admin or user:
        1. Create an issue in a project
        2. Attach one or more files to the issue (in "Attachments" section)
      2. As admin:
        1. go to Administration > Issues > Field configurations > Configure  a specific project configuration
        2. on a "View Field Configuration" go to "Attachment" field and click "Hide"

      Expected Results

      For "hidden" field state:

      • The "Attachments" section should not be present on UI issue view screen anymore.

      Actual Results

      For "hidden" field state:

      • The "Attachments" section is still present on UI issue view screen regardless the Field Configuration settings for the field.

      Notes

      It looks like it's a usability bug, it confuses the users. Attachments section is presented on a Field Configuration screen like other custom fields, therefore the expected result of Hide/Show options should be aligned (or at least the behavior should be better described there).

      At the same time, the REST API works as expected, the "attachment" field value is not present in a REST response (/rest/api/2/issue/issueID call) when the "Attachment" field is in a hidden state.

      Also: there's a naming misalignment:

      • "Attachments" on an issue screen view
      • "Attachment" on "Field Configuration" view

      Workaround

      To hide completely the Attachment section on UI issue view screen you need to modify a permission schema and remove "Create Attachments" (canCreateAttachments) permission for a user role.

            Unassigned Unassigned
            tdudzisz Tomasz Dudzisz (Inactive)
            Votes:
            46 Vote for this issue
            Watchers:
            30 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 1m
                1h 1m