Project and task creation through code

Hi, Is there is any way to create projects and tasks using backend code/ writing directly to DB?

Regards
Rakesh

Yes,
You can use frappe framework ORM to do that.

https://frappeframework.com/docs/user/en/desk/scripting/script-api

Is there any detailed docs about these? Thanks

1 Like

Thank you Maheshwari_Bhavesh, we will take a look at the script API,
One another thing
Is there is any way to create and use folders based on tasks for file upload?

Now all the uploaded files uploads to ‘/home/frappe/frappe-bench/sites/site1.local/private/files/’ folder, instead of this, I need to create folders based on tasks so that all the task-related files sit in a particular folder.

Yes, You can.

You can create a folder through script after creating any task and then upload an attachment inside that.

I believe there is no any details document available.

Thank you Maheshwari_Bhavesh, I want to know, how to link that created folder with that particular task for attach file , please share if you have any documents.