Auto tag assignment based on short description and group

Narendra21
Tera Contributor

When an incident is created, we need to check the short description for keywords and the assignment group. We should then look up these keywords in the label table. If we find matched labels with the short description keywords, we need to ensure that the incident assignment group matches the label's assigned group. Only labels with matching groups should be filtered. If a label does not have an assigned group, it can be ignored. The matched labels should then be inserted as tags for that incident in the label_entry table.

For that I have created an after insert or update BR:


Output:

Issue: There are 4 labels matched but only two were getting inserted as tags but all 4 labels were inserted in label_entry table.
Finding: For example if it finds two labels with the name gift then it is inserting only the last label as a tag and first one ignored, If it finds two labels with test then it is inserting only the last label as a tag and first one ignored.

0 REPLIES 0