# Description ## User Stories * > As a user I want to create a document by clicking on a template file so that I can use the templates from a shared folder. ## Acceptance Criteria - click on a template file eg. `letter.ott` creates a new writable document `letter.odt`, new document gets opened - Supported file formats: - Must: - `DOTX` - `OTT` - Nice to have: - `XLTX` - `POTX` - `OTS` - `OTP` - the document gets implicity saved to the users personal space: `letter.odt`; [Name of template].[corresponding ext] - filename collisions are implicitly solved: `letter (1).odt` - provide the location of `letter (1).odt` so that clients can show a notification where the file got stored (in personal) also see https://github.com/ONLYOFFICE/DocumentServer/issues/2839 ## Definition of ready - [ ] Everybody needs to understand the value written in the user story - [ ] Acceptance criteria have to be defined - [ ] All dependencies of the user story need to be identified - [ ] Feature should be seen from an end user perspective - [ ] Story has to be estimated - [ ] Story points need to be less than 20 ## Definition of done - Functional requirements - [ ] Functionality described in the user story works - [ ] Acceptance criteria are fulfilled - Quality - [ ] Code review happened - [ ] CI is green (that includes new and existing automated tests) - [ ] Critical code received unit tests by the developer - Non-functional requirements - [ ] No sonar cloud issues - Configuration changes - [ ] The next branch of the ocis charts is compatible
Activity
[-]Click on Template file -> Create Document[/-][+]POC: Click on Template file -> Create Document[/+][-]POC: Click on Template file -> Create Document[/-][+]POC Web, Backend, mobile, desktop: Click on Template file -> Create Document[/+][-]POC Web, Backend, mobile, desktop: Click on Template file -> Create Document[/-][+]POC: Click on Template file -> Create Document (Web, Backend, mobile, desktop)[/+]butonic commentedon Sep 10, 2024
hm, how do other solutions like collabora and ms solve this?
micbar commentedon Oct 9, 2024
Needed Changes in Web and oCIS
app/list/
target_ext=<extension>to indicate which extension should be used by the new fileapp/open
template_idto provide a way to tell the OfficeApp which template to process. The template_id will only be used if the file is empty.Background: It is important that the template is processed by the Web App to execute the field functions and other stuff.
Web Client
target_extfield from theapp/listresponse.external-app)New default action "open a new file from this template"
app/newusing the suggested file extensionapp/openand send thetemplate_idmicbar commentedon Oct 17, 2024
@kulmann backend has been merged.
kulmann commentedon Oct 17, 2024
nice! ❤️
saw-jan commentedon Dec 2, 2024
API tests: #10367
WebUI tests: owncloud/web#11811