def get_label_names(self, redmine_issue_dict, non_formatted=False):
        """
        Read a redmine issue and a make a list of formatted label names for
         - status
         - tracker
         - priority
         - component
         - category
        :returns: list with formatted label names
        """
        if not type(redmine_issue_dict) is dict:
            return []
            
        label_names = []
        
        # Add status
        status_label_name = self.get_label_from_id_name(redmine_issue_dict, 'status', 'Status:', non_formatted)
        if status_label_name:
            label_names.append(status_label_name)

        # Add tracker
        tracker_label_name = self.get_label_from_id_name(redmine_issue_dict, 'tracker', 'Tracker:', non_formatted)
        if tracker_label_name:
            label_names.append(tracker_label_name)

        # Add priority
        priority_label_name = self.get_label_from_id_name(redmine_issue_dict, 'priority', 'Priority:', non_formatted)
        if priority_label_name:
            label_names.append(priority_label_name)

        # Add category
        category_label_name = self.get_label_from_id_name(redmine_issue_dict, 'category', 'Category:', non_formatted)
        if category_label_name:
            label_names.append(category_label_name)

        # Add component
        #   "custom_fields": [
        #        {
        #            "id": 1, 
        #            "value": "0", 
        #            "name": "Usability Testing"
        #        }
        #    ],        
        #
        custom_fields = redmine_issue_dict.get('custom_fields', None)
        if custom_fields and len(custom_fields) > 0:
            for cf_dict in custom_fields:
                component_label_name = self.get_label_from_id_name(cf_dict, None, 'Component:', non_formatted)
                if component_label_name:
                    label_names.append(component_label_name)

        return label_names
dataset/ETHPy150Open IQSS/redmine2github/src/github_issues/label_helper.py/LabelHelper.get_label_names/original