-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-workspace-projects.json
More file actions
65 lines (65 loc) · 1.81 KB
/
test-workspace-projects.json
File metadata and controls
65 lines (65 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"version": "1.0",
"name": "Workspace Projects Creation Example",
"description": "Gets workspaces, then creates a project in each workspace with iteration",
"sequence": [
{
"method": "GET",
"path": "/workspaces",
"summary": "Get workspaces",
"description": "Returns the workspaces available to the user.",
"tags": ["Workspaces"],
"parameters": {
"path": {},
"query": {
"limit": "3",
"opt_fields": "gid,name,is_organization"
},
"body": null
},
"variableMappings": {}
},
{
"method": "POST",
"path": "/projects",
"summary": "Create project in each workspace (with iteration)",
"description": "This step iterates through each workspace from step 1 and creates a project",
"tags": ["Projects"],
"parameters": {
"path": {},
"query": {},
"body": "{\n \"data\": {\n \"name\": \"Test Project - {{item.name}}\",\n \"notes\": \"Auto-created project for workspace {{item.name}}\",\n \"workspace\": \"{{item.gid}}\"\n }\n}"
},
"variableMappings": {},
"iteration": {
"enabled": true,
"sourceField": "step0.data",
"iterationVariable": "item",
"unifyResults": true
}
}
],
"dataTransformations": {
"fieldMappings": [
{
"sourceField": "gid",
"targetField": "project_id",
"isUnified": false
},
{
"sourceField": "name",
"targetField": "project_name",
"isUnified": false
}
],
"unifiedColumns": [
{
"name": "project_info",
"formatTemplate": "{name} (ID: {gid})",
"sourceFields": ["name", "gid"]
}
]
},
"timestamp": "2025-11-12T00:00:00.000Z",
"baseUrl": "https://app.asana.com/api/1.0"
}