Code of Conduct
Contribution description
Code of Conduct
Is there an existing issue for this?
Feature description
Current behavior
When a form has multiple Destinations (e.g. it generates a Ticket for Team A and
another Ticket for Team B from the same submission), the answer to a "Document"
type question (an uploaded file) is automatically linked to all destinations
generated by that submission — regardless of whether each destination's
"Item to create" > custom content actually references that question via the
#Question / #Answer tags.
The per-destination "Custom fields" configuration (autoconfig or manual # tags)
only controls the ticket's textual content. It has no effect on which uploaded
documents get attached to which destination — every Document-type answer is
linked to every destination item.
Desired behavior
Provide a way to scope a "Document" type question's attachment to only the
destination(s) where it is relevant, for example:
- A per-destination toggle/checkbox for each Document-type question, to
include or exclude that specific attachment, or
- Only auto-attach the document to a destination when that destination's
custom content actually references the corresponding question (mirroring
how the text tags already work)
Example use case
A single HR form reports a role/position change for an employee. It has one
"Document" question (e.g. a scanned ID/driver's license) and creates two
items via two Destinations:
- Destination A (fleet/vehicle team): needs the document — correct, expected.
- Destination B (general service desk): does not need the document, but
receives it anyway, because the file is currently attached to every
destination regardless of its custom content configuration.
Today the only workaround is manually deleting the Document_Item link from
Destination B's resulting ticket after each submission, which does not scale
well (there is no reliable way to automate the cleanup, since the uploaded
file's name is user-controlled and unpredictable).
GLPI version
11.0.8
Additional context
Possibly related: #24159 ("All form fields are displayed when creating a
ticket") shows there are already known gaps in how per-destination content
scoping behaves in the native Forms module — this request is about extending
that same scoping concept to file/document attachments, not just text.
Code of Conduct
Contribution description
Code of Conduct
Is there an existing issue for this?
Feature description
Current behavior
When a form has multiple Destinations (e.g. it generates a Ticket for Team A and
another Ticket for Team B from the same submission), the answer to a "Document"
type question (an uploaded file) is automatically linked to all destinations
generated by that submission — regardless of whether each destination's
"Item to create" > custom content actually references that question via the
#Question/#Answertags.The per-destination "Custom fields" configuration (autoconfig or manual
#tags)only controls the ticket's textual content. It has no effect on which uploaded
documents get attached to which destination — every Document-type answer is
linked to every destination item.
Desired behavior
Provide a way to scope a "Document" type question's attachment to only the
destination(s) where it is relevant, for example:
include or exclude that specific attachment, or
custom content actually references the corresponding question (mirroring
how the text tags already work)
Example use case
A single HR form reports a role/position change for an employee. It has one
"Document" question (e.g. a scanned ID/driver's license) and creates two
items via two Destinations:
receives it anyway, because the file is currently attached to every
destination regardless of its custom content configuration.
Today the only workaround is manually deleting the
Document_Itemlink fromDestination B's resulting ticket after each submission, which does not scale
well (there is no reliable way to automate the cleanup, since the uploaded
file's name is user-controlled and unpredictable).
GLPI version
11.0.8
Additional context
Possibly related: #24159 ("All form fields are displayed when creating a
ticket") shows there are already known gaps in how per-destination content
scoping behaves in the native Forms module — this request is about extending
that same scoping concept to file/document attachments, not just text.