glpi icon indicating copy to clipboard operation
glpi copied to clipboard

Business rule for assets doesn't work anymore

Open Math6768 opened this issue 11 months ago • 1 comments

Code of Conduct

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

Is there an existing issue for this?

  • [x] I have searched the existing issues

Version

10.0.18

Bug description

We have several business rules for assets like this :

Image

This rule worked perfectly in version 10.0.17 and doesn't work anymore in since upgrade to 10.0.18

Relevant log output


Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Math6768 avatar Mar 25 '25 10:03 Math6768

We are facing the same problem for a business rule, which sets the user for an alternate username. This was working before 10.0.18. In our case it works fine for automatic inventory but not for a manual update.

Image

AndiMb avatar May 06 '25 12:05 AndiMb

There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.

If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.

You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.

github-actions[bot] avatar Jul 06 '25 08:07 github-actions[bot]

Still present in 10.0.19....

Math6768 avatar Sep 04 '25 13:09 Math6768

I just performed a quick test on the 10.0bugfixes branch.

Here is my rule (Sub-entity → Yes):

Image

And here is the location defined in the sub-entity:

Image

When creating a computer, the location is correctly assigned to the computer via the rule.

Image

Could you provide more details, particularly about your rules, the location, and where the computers are being created? The more information you can give, the better chance I have of identifying the bug (if it exists).

stonebuzz avatar Sep 08 '25 10:09 stonebuzz

Hi,

Here is one of my rules :

Image Image Image

This rule (and the others which are similar) worked in version 10.0.17. Since upgrade to 10.0.18 this rule doesn't work anymore. If I move an asset in for example Bordeaux entity, Location field is not updated anymore.

A part of my entity for assets management :

Image

Computer is created by inventory un Root/SI/Infra/Assetsn then technician fills some contract information and transfer computer in correct entity regarding is location. I expect Location is updated automatically regarding destination entity which was working before 10.0.18 upgrade.

Let me know how can I help to debug.

Thx

Math6768 avatar Sep 08 '25 13:09 Math6768

I don’t see in your screenshots whether the rule can be applied to sub-entities (the same applies to the location).

Could you please check your options in the transfer template? A new option has been added: https://github.com/glpi-project/glpi/pull/15643

stonebuzz avatar Sep 08 '25 14:09 stonebuzz

Hi,

Image

I never ticked child entities box, maybe something has changed and I have to tick it now ?

Math6768 avatar Sep 09 '25 06:09 Math6768

Could you try checking the Child entities box to see if that resolves the issue?

stonebuzz avatar Sep 09 '25 06:09 stonebuzz

The application of rules based on the entity was enhanced recently.

https://github.com/glpi-project/glpi/pull/18775

stonebuzz avatar Sep 09 '25 06:09 stonebuzz

@stonebuzz Congratulations ! This made the job !

Issue resolved. Many thanks for your help !

Math6768 avatar Sep 09 '25 07:09 Math6768

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

You can get community support on forums or you can consider taking a subscription to get professional support. You can also contact GLPI editor team directly.

github-actions[bot] avatar Sep 09 '25 07:09 github-actions[bot]