$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "jiraExport": {
< "sprint": {
< "id": 37,
< "name": "Synthetic November sprint",
< "state": "closed",
< "startDate": "2026-11-01T10:00:00Z",
< "endDate": "2026-11-08T10:00:00Z",
< "completeDate": "2026-11-08T11:00:00Z"
< },
< "sprintField": {
< "id": "customfield_10020",
< "name": "Sprint",
< "schema": {
< "custom": "com.pyxis.greenhopper.jira:gh-sprint"
< }
< },
< "issues": [
< {
< "issue": {
< "id": "10001",
< "key": "DEMO-1",
< "fields": {
< "created": "2026-10-20T10:00:00Z",
< "sprint": null,
< "closedSprints": [
< {
< "id": 37,
< "name": "Synthetic November sprint"
< }
< ]
< }
< },
< "changelog": {
< "startAt": 0,
< "maxResults": 3,
< "total": 3,
< "values": [
< {
< "id": "501",
< "created": "2026-10-31T15:00:00Z",
< "items": [
< {
< "field": "Sprint",
< "fieldId": "customfield_10020",
< "from": "",
< "to": "37",
< "fromString": "",
< "toString": "Synthetic November sprint"
< }
< ]
< },
< {
< "id": "502",
< "created": "2026-11-03T12:00:00Z",
< "items": [
< {
< "field": "Sprint",
< "fieldId": "customfield_10020",
< "from": "37",
< "to": "",
< "fromString": "Synthetic November sprint",
< "toString": ""
< }
< ]
< },
< {
< "id": "503",
< "created": "2026-11-04T12:00:00Z",
< "items": [
< {
< "field": "Sprint",
< "fieldId": "customfield_10020",
< "from": "",
< "to": "37",
< "fromString": "",
< "toString": "Synthetic November sprint"
< }
< ]
< }
< ]
< }
< },
< {
< "issue": {
< "id": "10002",
< "key": "DEMO-2",
< "fields": {
< "created": "2026-11-02T11:00:00Z",
< "sprint": null,
< "closedSprints": [
< {
< "id": 37,
< "name": "Synthetic November sprint"
< }
< ]
< }
< },
< "changelog": {
< "startAt": 0,
< "maxResults": 1,
< "total": 1,
< "values": [
< {
< "id": "504",
< "created": "2026-11-02T12:00:00Z",
< "items": [
< {
< "field": "Sprint",
< "fieldId": "customfield_10020",
< "from": "",
< "to": "37",
< "fromString": "",
< "toString": "Synthetic November sprint"
< }
< ]
< }
< ]
< }
< },
< {
< "issue": {
< "id": "10003",
< "key": "DEMO-3",
< "fields": {
< "created": "2026-10-20T10:00:00Z",
< "sprint": null,
< "closedSprints": [
< {
< "id": 37,
< "name": "Synthetic November sprint"
< }
< ]
< }
< },
< "changelog": {
< "startAt": 0,
< "maxResults": 0,
< "total": 0,
< "values": []
< }
< }
< ]
< },
< "maxRunSeconds": 120
<}
<EOF
$curl "https://api.apify.com/v2/actors/natstandridge~jira-sprint-scope-churn-audit/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'