nextcloud / nextcloud/forms

Export submission id and attachment id

Open
#2,812 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement
Dominant language
JavaScript
Stars
382
Forks
127
Avg merge
19h 31m
Merged PRs (30d)
75

Description

Include the form_id, submission_id and attachment_id s when querying the form results; specially when receiving file uploads, the exported spreadsheet/CSV only contains the filenames.

  • Nextcloud-Version: any
  • Forms-Version: any

Is your feature request related to a problem? Please describe.

I need to match the uploaded files with the form answers of their specific form submissions. Uploaded files are stored under a directory hierarchy consisting on the form id, the submission id and their attachment ids. Nowadays, the only way to match the files with their respective submissions is through the REST API. If the submission id and attachment ids were included in the exported sheet, it would be way easier to match them just by watching the filesystem.

Describe the solution you'd like

Permanently add a column to the exported spreadsheet/CSV including the submission id and, when uploading files, besides their filename, also include their attachment ids, so they can be easily matched looking at the directory names and sheet entries.

I mean, it is not impossible to disambiguate the association between the form submission and the multiple attachments, but is definitely not straightforward for a user without recurring into extra programming.

Describe alternatives you've considered

Querying the REST API to obtain the details from ambiguously associated uploaded files.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the form-results spreadsheet/CSV export and its attachment serialization, then verify how form_id, submission_id, and attachment_id are represented. Done means exported rows include the requested identifiers so uploaded files can be matched to their submissions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.