sysreptor icon indicating copy to clipboard operation
sysreptor copied to clipboard

[Feature Request] Custom order of nested fields

Open dnbsd opened this issue 6 months ago • 3 comments

We have an object tool in our project fields with nested fields name, version, description.

When creating a report the fields are ordered according to the alphabet. Although logical, it makes reporting cumbersome as we have learned to expect a natural order of the fields. At the moment, two solutions are possible:

1. Add a number prefix to a nested field id

For instance:

_01_name
_02_version
_03_description

This however, requires changing the template if the order changes or a new nested field is added.

2. Use a flat hierarchy

Instead of an object use multiple fields with a common prefix, for instance:

tool_name
tool_version
tool_description

I don't like this approach as it pollutes the section with too many fields. Also, this approach won't work with variable number of tools (a list of objects).

Ideal solution would be to keep the order in which they were added, and then allow ordering via drag and drop, similar to how it's done in sections.

dnbsd avatar Jan 11 '24 10:01 dnbsd