Magidoc

convertActionToProject
Mutation

Creates a project from an action and copies its subactions into the new project. The name defaults to the action title and membership defaults to the caller. Can apply a template, add members or teams, configure sharing, nest the project, and optionally delete the original action. Requires action and workspace access.

Arguments

#

actionId

ID !
Non-null

The ID of the action to convert to a project

projectName

Optional custom name for the new project (defaults to action title)

parentProjectId

Optional parent project ID to nest the new project under

deleteOriginalAction

Whether to delete the original action after conversion (default: false)

applyTemplateId

Optional project template ID to apply to the new project

sharingType

Project sharing type (me, custom, everyone) - defaults to 'me'

members

[ID !]

User IDs to add as project members (defaults to current user)

teams

[ID !]

Team IDs to give access to the project

layout

Default project layout; takes precedence over legacy viewType. Defaults to List.

viewType

Legacy default view type for the project.

Response

#

Returns Project .

Example

#