You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-09-04 15:13:24

odengler
Member
Registered: 2024-09-03
Posts: 4

formcreator dynamic content

Hello all,

we're providing forms for standard requests to users which works like a charm.

When a user leaves the company, HR in the form selects the GLPI user, fills the user's last workday and submits the request.
Multiple targets create tickets for various activities, e.g. decomissioning of the user's hardware.

So I'm getting multiple tickets, e.g. one for decomissioning of the PC, one for the phone, one for closing of the account etc.
These tickets are always created, regardless if the user owns the respective assets, meaning that I have many tickets opened without needing them.

So I'm looking for a way to only create a ticket, if the selected user has at least one item of the corresponding item type assigned in GLPI.

DIes anyone have an idea how to achieve this?

Thanks for all suggestions!

/Osama

Offline

#2 2024-09-04 15:20:43

btry
Moderator
Registered: 2015-10-01
Posts: 608

Re: formcreator dynamic content

Hi

Have a look to each target ticket of your form. You should be able to set conditions, like those you can set for questions. Conditions applied to targets enable / disable the generation of the tickets / problems / changes.


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#3 2024-09-04 16:59:41

odengler
Member
Registered: 2024-09-03
Posts: 4

Re: formcreator dynamic content

Hi,

thanks for the suggestion, I'm familiar with the conditions and have already experimented.
Unfortunately they are only acing on form answer (e.g. "disable unless Name is blah").

In my case ticket creation doesn't depend on form answer but on items used by the user.
I've already experimented with business rules but could not find a solution either.

Thanks,
Osama

Offline

#4 2024-09-04 17:09:07

btry
Moderator
Registered: 2015-10-01
Posts: 608

Re: formcreator dynamic content

Maybe you missed a feature. Trust me, you can add conditions on target tickets : it has been implemented years ago, then I assume your version of Formcreator is recent enough.

Open a target ticket then select the tab "Conditions".

This is said in the documentation of the plugin: https://glpi-plugins.readthedocs.io/en/ … conditions

And... I developed that feature, so I'm pretty sure about it smile


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#5 2024-09-04 17:10:48

btry
Moderator
Registered: 2015-10-01
Posts: 608

Re: formcreator dynamic content

Here is a screenshot if it can help you

conditions.png


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#6 2024-09-04 17:15:22

btry
Moderator
Registered: 2015-10-01
Posts: 608

Re: formcreator dynamic content

If you need to generate a target depending on items used by a user, if you case is simple you might add a question where the user selects the item related to his request.


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#7 2024-09-06 12:49:18

odengler
Member
Registered: 2024-09-03
Posts: 4

Re: formcreator dynamic content

Thanks a lot for Your suggestions, I'm familiar with conditions and am already using (and loving) them.

However, my usecase is different, please excuse if I haven't described preceisely enough.

In our workflow, HR department fills the form and selects user and date of last workday.
HR doesn't know anything about the assets the user owns, so there's no question they could answer, hence no answer a condition could rely on.

Instead I want to make GLPI create a ticket for each asset the user has assigned in GLPI.

I have no clue how to achieve this with form conditions.

Thanks, Osama

Offline

#8 2024-09-06 13:04:12

btry
Moderator
Registered: 2015-10-01
Posts: 608

Re: formcreator dynamic content

Hi

Unfortunately this use case is not supported in Formcreator. I gues you want to monitor some process on each asset of the user individually, and I don't have any workaround able to fit your need. I suggest you keep that in mind and wait for GLPI 11 beta to see if the new Forms feature is able to solve your problem.


No support with MP - Always run an upgrade task on a testing instance before running it on production! Always backup before any upgrade task!

Offline

#9 2024-09-06 13:16:14

odengler
Member
Registered: 2024-09-03
Posts: 4

Re: formcreator dynamic content

Hi,

thanks for the feedback - I'll wait for GLPI 11. Do You know when it is scheduled?

Thanks,
Osama

Offline

#10 2024-09-07 12:52:14

cconard96
Moderator
Registered: 2018-07-31
Posts: 3,237
Website

Re: formcreator dynamic content

It isn't scheduled. There are specific features that need finished still. It will probably at least be in a beta release phase by the end of the year.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#11 2024-09-16 19:45:55

avelor
Member
Registered: 2024-03-28
Posts: 9

Re: formcreator dynamic content

Hello! I've a similar (but not exactly) question..
We want to create few tickets by one form, based on form answer.
For example, user wants 4 monitors, he type "4" on form, and does it possible to create 4 tickets?..

Offline

Board footer

Powered by FluxBB