Component attributes can be considered like custom fields for components. Before specifying component attribute values, Jira administrators or Jira System Administrators should define available "Component Attributes" using "Component Attributes" section of add-on configuration. 

You can use hasComponentAttribute to query components having a specific attribute. hasComponentAttribute accepts 3 parameters, attribute name, operator and operand. For example:

component in hasComponentAttribute("Open Source", "=", "true")


component in hasComponentAttribute("Budget", ">", "100h")