Allow Assets field configuration scope multiple schemas

XMLWordPrintable

    • 0
    • 6

      Issue Summary

      Currently, it is not possible to have an Assets custom field scope multiple schema in the Object schema configuration field.

      Steps to Reproduce

      1. Click on Configuration > Work items > Custom fields
      2. Search for an assets custom field > Click the three dots > Contexts and default value. > Edit custom field
      3. The Object schema will only allow one schema per field.

      Expected Results

      It would be nice to have the ability to add multiple schemas.

      Actual Results

      The Object schema will only allow one schema per field

      ...
      

      Workaround

       

      While it is only possible to scope one schema per Assets custom field, you can reference other schema’s objects by adding them as attributes in the current schema’s object types.

      Suppose I have my Assets field scoped to schema “A”, and I want to reference otherobject from schema “B”. Next to the schema B, click the three dots and select Settings.

      Let’s walk through how you can use AQL (Assets Query Language) in Jira Cloud to include objects from schema 'B' in an Assets custom field scoped to schema 'A'. Since an Assets custom field is tied to a single schema (in this case, schema 'A'), you can’t directly query schema 'B' objects in the custom field’s Filter Scope. However, you can reference objects from schema 'B' in schema 'A' via object attributes and use AQL to filter those referenced objects. Here’s a step-by-step example:

      Scenario

      Schema 'A': Contains objects of type "Hardware" (e.g., laptops, servers).
      Schema 'B': Contains objects of type "Software" (e.g., applications, licenses).

      You want an Assets custom field scoped to schema 'A' to show "Hardware" objects that are linked to specific "Software" objects from schema 'B'.

      Prerequisites

      • Enable Cross-Schema Referencing:

      Click General tab, under Additional settings make sure the option “Allow others to select objects from this schema” is checked.This will allow adding an object from Schema “B” to the Schema “A”.

      This allows schema 'A' to reference objects from schema 'B'.

      • Set Up Reference Attribute in Schema 'A':

      In schema 'A', create an attribute in the "Hardware" object type (e.g., called "Installed Software") that references objects from schema 'B'.

      This attribute should be of type "Object" with a reference to the "Software" object type in schema 'B'. You can set this up in Object Schema > Object Type > Attributes > Add Attribute.

      Example: A "Laptop" object in schema 'A' has an "Installed Software" attribute pointing to a "Microsoft Office" object in schema 'B'.

      AQL Example:
       

      objectType = “Hardware” AND ‘“nstalled Software”.Name = “Microsoft Office”
      

      When configuring the Assets custom field in Jira:

      Go to Settings > Issues > Custom Fields > Create custom field > Assets objects.
      Select schema 'A' as the scope.
      In the Filter Scope field, use AQL to filter objects in schema 'A' that reference specific objects in schema 'B' via the attribute.

            Assignee:
            Unassigned
            Reporter:
            Alexander Edmunds
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: