1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "jiraExport": {
10 "sprint": {
11 "id": 37,
12 "name": "Synthetic November sprint",
13 "state": "closed",
14 "startDate": "2026-11-01T10:00:00Z",
15 "endDate": "2026-11-08T10:00:00Z",
16 "completeDate": "2026-11-08T11:00:00Z",
17 },
18 "sprintField": {
19 "id": "customfield_10020",
20 "name": "Sprint",
21 "schema": { "custom": "com.pyxis.greenhopper.jira:gh-sprint" },
22 },
23 "issues": [
24 {
25 "issue": {
26 "id": "10001",
27 "key": "DEMO-1",
28 "fields": {
29 "created": "2026-10-20T10:00:00Z",
30 "sprint": None,
31 "closedSprints": [{
32 "id": 37,
33 "name": "Synthetic November sprint",
34 }],
35 },
36 },
37 "changelog": {
38 "startAt": 0,
39 "maxResults": 3,
40 "total": 3,
41 "values": [
42 {
43 "id": "501",
44 "created": "2026-10-31T15:00:00Z",
45 "items": [{
46 "field": "Sprint",
47 "fieldId": "customfield_10020",
48 "from": "",
49 "to": "37",
50 "fromString": "",
51 "toString": "Synthetic November sprint",
52 }],
53 },
54 {
55 "id": "502",
56 "created": "2026-11-03T12:00:00Z",
57 "items": [{
58 "field": "Sprint",
59 "fieldId": "customfield_10020",
60 "from": "37",
61 "to": "",
62 "fromString": "Synthetic November sprint",
63 "toString": "",
64 }],
65 },
66 {
67 "id": "503",
68 "created": "2026-11-04T12:00:00Z",
69 "items": [{
70 "field": "Sprint",
71 "fieldId": "customfield_10020",
72 "from": "",
73 "to": "37",
74 "fromString": "",
75 "toString": "Synthetic November sprint",
76 }],
77 },
78 ],
79 },
80 },
81 {
82 "issue": {
83 "id": "10002",
84 "key": "DEMO-2",
85 "fields": {
86 "created": "2026-11-02T11:00:00Z",
87 "sprint": None,
88 "closedSprints": [{
89 "id": 37,
90 "name": "Synthetic November sprint",
91 }],
92 },
93 },
94 "changelog": {
95 "startAt": 0,
96 "maxResults": 1,
97 "total": 1,
98 "values": [{
99 "id": "504",
100 "created": "2026-11-02T12:00:00Z",
101 "items": [{
102 "field": "Sprint",
103 "fieldId": "customfield_10020",
104 "from": "",
105 "to": "37",
106 "fromString": "",
107 "toString": "Synthetic November sprint",
108 }],
109 }],
110 },
111 },
112 {
113 "issue": {
114 "id": "10003",
115 "key": "DEMO-3",
116 "fields": {
117 "created": "2026-10-20T10:00:00Z",
118 "sprint": None,
119 "closedSprints": [{
120 "id": 37,
121 "name": "Synthetic November sprint",
122 }],
123 },
124 },
125 "changelog": {
126 "startAt": 0,
127 "maxResults": 0,
128 "total": 0,
129 "values": [],
130 },
131 },
132 ],
133 },
134 "maxRunSeconds": 120,
135}
136
137
138run = client.actor("natstandridge/jira-sprint-scope-churn-audit").call(run_input=run_input)
139
140
141print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
142for item in client.dataset(run.default_dataset_id).iterate_items():
143 print(item)
144
145