Skip to content

Commit 5013ee8

Browse files
committed
feat: add statuspage migration commands
1 parent 90c78f8 commit 5013ee8

6 files changed

Lines changed: 1169 additions & 14 deletions

File tree

‎README.md‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,32 @@ flashduty field list [flags] # List custom field definitions
173173

174174
Supports `--name`.
175175

176-
### `statuspage` - Status Page Management (4 commands)
176+
### `statuspage` - Status Page Management (5 command groups)
177177

178178
```bash
179179
flashduty statuspage list [--id <ids>] # List status pages
180180
flashduty statuspage changes --page-id <id> --type <incident|maintenance> # List active changes
181181
flashduty statuspage create-incident --page-id <id> --title <title> # Create status incident
182182
flashduty statuspage create-timeline --page-id <id> --change <id> --message <msg> # Add timeline update
183+
flashduty statuspage migrate structure --from atlassian --source-page-id <id> --api-key <key> # Start structure/history migration
184+
flashduty statuspage migrate email-subscribers --from atlassian --source-page-id <id> --target-page-id <id> --api-key <key> # Start email subscriber migration
185+
flashduty statuspage migrate status --job-id <id> # Check migration job status
186+
flashduty statuspage migrate cancel --job-id <id> # Cancel a running migration job
187+
```
188+
189+
Migration jobs are asynchronous. After starting `structure` or `email-subscribers`, use:
190+
191+
```bash
192+
flashduty statuspage migrate status --job-id <job_id>
193+
```
194+
195+
Typical flow:
196+
197+
```bash
198+
flashduty statuspage migrate structure --from atlassian --source-page-id page_123 --api-key $ATLASSIAN_STATUSPAGE_API_KEY
199+
flashduty statuspage migrate status --job-id <structure_job_id>
200+
flashduty statuspage migrate email-subscribers --from atlassian --source-page-id page_123 --target-page-id <target_page_id> --api-key $ATLASSIAN_STATUSPAGE_API_KEY
201+
flashduty statuspage migrate status --job-id <subscriber_job_id>
183202
```
184203

185204
### `template` - Notification Template Management (4 commands)

0 commit comments

Comments
 (0)