formcreator icon indicating copy to clipboard operation
formcreator copied to clipboard

Be able to select Ticket additional fields in Target Ticket Properties

Open fabriceverkor opened this issue 2 years ago • 7 comments

As title says, it would be great to fill Ticket additional fields by Forms. It requires that these additional fields appear in Target Ticket Properties. Any way to do that ?

fabriceverkor avatar Sep 17 '22 07:09 fabriceverkor

Hi

I don't understand well. Do you mean the plugin additional fields ?

btry avatar Sep 17 '22 07:09 btry

Sorry. yes, the Ticket additional fields (dropdowns in my case) created by plugin additional fields.

fabriceverkor avatar Sep 17 '22 10:09 fabriceverkor

Hi

This is already supported. I checked the documentation and unfortunately it has not been updated about the feature. There are some constraints about the additional field configuration in the eponym plugin.

In Formcreator, use the question type additional field, then configure the target ticket to use this question. You need ##fullform## or ##answer_xxx## (xxx is the Id of the question, as found in the list of tags available on screen).

btry avatar Sep 17 '22 10:09 btry

I think I was unclear. Yes, I could create questions using additional fields. I speaking about the "Properties" screen of target ticket that does not show additional fields created on tickets.

fabriceverkor avatar Sep 17 '22 18:09 fabriceverkor

The current implementation does not need any new setting in the target ticket. The additional field of the generated ticket is filled properly, based on the question of type "additional field".

Let me find the PR of the feature, there is maybe some screenshots illustrating the result.

btry avatar Sep 17 '22 18:09 btry

There is no screenshot in the PR. I'll complete the documentation soon. This way you will have an accurate overview of the feature.

If you already got it but still think that something could be added to target tickets, you may describe exactly the need by describing a real use case. This may help me to understand. So far I don't see what could be added to improve the additional fields support

btry avatar Sep 17 '22 18:09 btry

Hi Thank your for your answers. I tried the following : 1- I have a dropdown additionnal fields "Environment" on Tickets 2- In the form, I have a question of Dropdown Type using the Dropdown "Addition Fields- Environment" 3- As SelftService user, when I fill the form, the possible values of the dropdown are proposed 4- But the corresponding field is empty in the created ticket.

Did I miss something ?

fabriceverkor avatar Sep 20 '22 08:09 fabriceverkor

I still have the pb with GLPI 10.0.10 + FormCreator 2.13.7 + Additional Fields 1.21.4 Everything seems to work fine : dropdown additional field can be selected in ticket : image

dropdown additional field can be selected in form : image

But when ticket is created, the field is not filled with question answer, which appears in ticket Description.

I works perfectly with an additional text field , which is filled by question answer and does not appear in ticket Description.

fabriceverkor avatar Oct 04 '23 06:10 fabriceverkor

Anyone would have an idea of what I doing wrong ?

fabriceverkor avatar Oct 16 '23 12:10 fabriceverkor

Hi

In the additional fields plugin, check the block is of type "Insert in the Form (before save button)"

image

btry avatar Oct 16 '23 12:10 btry

Here below what I have : image

fabriceverkor avatar Oct 16 '23 12:10 fabriceverkor

I think I got the problem. Check your previous comment : https://github.com/pluginsGLPI/formcreator/issues/2987#issuecomment-1252019028

You said the question is of type Dropdown with subtype additional field - Environment. This is wrong. You must use a question of type "Additional field" then select an available block, and a field in this block.

btry avatar Oct 16 '23 12:10 btry

Ah yes !!!! My bad. Thank you, it works .

fabriceverkor avatar Oct 16 '23 13:10 fabriceverkor