Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one tag added by rules, even having multiple rules triggered #229

Closed
2 tasks done
NDesouzamachado-FS opened this issue Feb 3, 2025 · 2 comments
Closed
2 tasks done

Comments

@NDesouzamachado-FS
Copy link

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

10.0.16

Plugin version

2.12.1

Bug description

When having multiple rules for adding tags to the ticket only the last trigger found actually adds a tag to the ticket.

Relevant log output

Page URL

No response

Steps To reproduce

  1. Create first rule: Add/Update, Description > contains > Incoterm, add tags>assign>Incoterm
  2. Create second rule: Add/Update, Description > contains > Lot-number, add tags>assign>Lot-number
  3. Create a ticket with both texts in the description. Ex: We have a issue in the Lot-number and also the Incoterm.
  4. The result will be only on tag added to the ticket, the last in the body description. In the example, Incoterm.

Your GLPI setup information

No response

Anything else?

It's a very cool plugin, thanks for the good work ^^

@stonebuzz
Copy link
Contributor

Hi @NDesouzamachado-FS

This is how the plugin works

Currently, only the assign" action is available (which only allows adding a single tag).

If multiple rules use assign it overrides the tag added by the previous rules.

It would be necessary to implement append which would allow adding multiple tags.

Best regards.

Copy link

github-actions bot commented Feb 4, 2025

This issue has been closed as we only track bugs here.

You can open a topic to discuss with community about this enhancement on suggestion website.
You can also contact GLPI editor team directly if you are willing to sponsor this feature.

@github-actions github-actions bot closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants