Skip to main content

Classify Files with Categories

Categories let you tag each file in a File Field with a colored label — for example Contract, ID Document, or Certificate. With categories on, a single field can collect a mix of documents — and even several of the same kind — while keeping each one easy to identify, without anyone guessing from the file name.

That's the difference from adding a separate field per document: the number and mix of files is rarely fixed — one work item brings a single contract, another brings three certificates — so one labeled field scales where a field-per-document doesn't.

The label is a colored chip shown above the files it labels, visible both while editing and in the read-only work item view. Categories are also included in Jira exports and are searchable in JQL through the field's Categories alias.

This page is mostly for Jira administrators — they turn categories on and define them — but it also covers what people see when they attach files.

A Jira work item view — the Onboarding documents field showing employment-contract.pdf under a green Contract label, first-aid-certificate.pdf under a purple Certificate label, and onboarding-plan.xlsx with no category below them
One field, files grouped by category — a contract and a certificate, each clearly labeled, and a file without a category

Categories are optional and off by default​

Categories are turned off until an administrator enables them. Until then the field behaves exactly as before — people just add files, with no extra step.

  • They are enabled separately for each field context, so you can use different settings for different spaces or work types — the same per-context control you get for upload rules.
  • Turning the feature off and saving removes the list of categories you defined, and the tab warns you before you save. Until you save, the list stays and comes back when you switch the toggle on again.
  • Files keep their category names when the list is removed, and JQL still finds them. The field just stops grouping files and asking for a category. Define a category again under exactly the same name and it covers those files again.

Turn on and define categories​

Categories live on the field context, in the Categories tab of the field configuration — after Allowed files, where you set file types, count, and size, and Actions. If you have not opened a field context before, Set Field Configuration walks through getting there.

  1. Open the Categories tab

    In the field's configuration, switch to the Categories tab, the third one. This is where the whole feature is set up for this context.

    Edit custom field config for the Onboarding documents field — the Categories tab highlighted, third in the row after Allowed files and Actions
    Open the field configuration and switch to the “Categories” tab
  2. Enable categories

    Turn on Enable categories for this context. While it is off, the Add button and the category list are inactive and people attach files without being asked for a category.

  3. Add a category

    Click Add to open the Add category dialog and set:

    • Name — required, up to 100 characters, and unique within the field. Names that differ only in capital letters count as the same name, because JQL doesn't tell them apart.
    • Color — one of six colors (Grey, Blue, Green, Red, Purple, Yellow). A live Preview shows exactly how the label will look.
    The Add category dialog — a Name field, the six color choices, and a live label Preview, over the Categories tab listing Contract, ID Document, and Certificate
    Set a name and color — the Preview shows the label as it will appear
  4. Edit or remove a category

    Each category appears in the list as its colored chip. Click a chip to open Edit category, where you can rename it, change its color, or Delete it. A context holds up to 50 categories.

    A new color shows on every file of that category. A rename changes the list only: files already tagged keep the old name, and the field draws that name in grey.

  5. Save

    Click Save to store the policy for this context — the category list together with the state of the toggle.

    The Categories tab for Onboarding documents — Enable categories turned on, with Contract, ID Document, and Certificate defined and a Save button
    The finished setup — categories enabled and defined, ready to save

Because categories are defined per context, changes apply only to the spaces and work types that context covers — not to your whole Jira instance. The same field can offer different categories in different spaces.


Choosing a category when attaching files​

When categories are on, adding a file takes one extra step:

  1. The person selects one or more files in the drop zone.

  2. Before anything uploads, the field shows its category panel in place of the file list: the selected files, Select category:, and every category as a button in its color.

  3. They click a category to choose it; clicking the chosen one again clears it. With nothing chosen, the files upload without a category.

  4. Upload uploads the files with the chosen category; Cancel discards the selection and nothing is uploaded.

If several files are selected together, they all receive the same category. After upload, the category's chip heads the group of its files: in the editor as Category: followed by the chip, in the read-only view the chip alone. Files without a category come last, under a No category heading when other files have one. When categories are off, the panel never appears and files upload right away.

A file's category is chosen once, at upload. A saved file's category can't be changed, and a new version of the file keeps it. To correct a wrong category, delete the file and attach it again with the right one; it then starts over as a new file, without its earlier version history.


Where categories appear​

  • Above its files — a colored chip heading each category's files, in the editor and in the read-only view.
  • In Jira exports — the field's value is exported together with its category information.
  • In JQL search — through the field's Categories alias, so you can filter work items by the category a file was given.

Find files by category in JQL​

Once a file has a category, you can search for it in Advanced search (JQL) using the field's Categories alias. The alias is scoped to the field, so the pattern is "<Field name>.Categories" and the value is the category name.

For example, find every work item where the Onboarding Documents field holds a file labeled Certificate:

"Onboarding Documents.Categories" = Certificate
Jira Advanced search in JQL mode — the query "Onboarding Documents.Categories" = Certificate returning the work item that has a certificate file
Searching by category in Advanced search (JQL)

Categories are just one of the things you can search on. See Find Work items by Their Files (JQL) for filtering by file count, type, and name as well.


When to use categories​

Reach for categories when one field collects a mix of documents whose number and type vary from work item to work item — often with several of the same kind. That's exactly where a separate field per document falls down: you can't predefine a field for "the third certificate." One labeled field absorbs the whole pile and keeps it organized.

One field, a variable mix of documents

  • Onboarding / HR — a contract, an ID scan, and however many training certificates a new hire happens to have, all in one field, each labeled.
  • Legal / contracts — a contract plus its amendments and consent forms, where the count grows over time.
  • Bug reports — a log, a screenshot, and one or more screen recordings together, but clearly told apart.

Enforcing a complete set before work moves on

  • A workflow rule can demand a file in each category you name, so one field can require a contract and an invoice and a delivery note — not merely three files. Categories are what makes that possible: without them a rule can only count.

Recognizing an attachment's type for automation and reporting

  • A stable, searchable label means automation and reports can act on what a file is instead of guessing from its name — for example reacting to a particular document type or keeping tidy reports of what a work item holds.

Handling sensitive data (GDPR)

  • Marking files that contain personal data makes them easier to find later and to remove selectively, without touching the other attachments on the work item.