Automatically create sub-folder

Hello,

Is it possible to automatically create a sub-folder on nextcloud grabbing a name from another source?
Ideally it would be from a JIRA project, but if it’s not possible maybe from a .txt file.

Thanks in advance

More context would be needed, but the answer likely is “yes”. The approach will depend on how/what will trigger the action. But the simplest would probably be to have a script that runs somewhere that:

  1. Pulls the name from JIRA
  2. Makes WebDAV call to NC via cURL to make the specified directory (MKCOL)[2]

[2] e.g. `curl -u user:pass -X MKCOL “https://example.com/remote.php/dav/files/USERNAME/FOLDERNAME

https://docs.nextcloud.com/server/latest/user_manual/en/files/access_webdav.html#accessing-files-using-curl