-
Notifications
You must be signed in to change notification settings - Fork 14
/
org-scrum.el
501 lines (447 loc) · 23 KB
/
org-scrum.el
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
;;; org-scrum.el --- org mode extensions for scrum planning and reporting -*- lexical-binding: t -*-
;; Copyright (C) 2012-2020 Ian Martins
;; Author: Ian Martins <[email protected]>
;; URL: https://github.com/ianxm/emacs-scrum
;; Version: 0.1.0
;; Package-Requires: ((emacs "24.5") (org "8.2") (seq "2.3") (cl-lib "1.0"))
;; This file is not part of GNU Emacs.
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; For a full copy of the GNU General Public License
;; see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; Provides functions that extend org-mode which allow it to generate
;; reports used in the scrum software development process, such as a
;; scrum board and burndown chart.
;;; Code:
(require 'seq)
(require 'cl-lib)
(require 'org)
(defgroup org-scrum nil
"Options for customizing scrum reports"
:tag "Org Scrum"
:group 'org)
(defcustom org-scrum-taskid-prefix "T"
"Prefix added to taskids."
:type 'string
:group 'org-scrum)
(defcustom org-scrum-board-links nil
"If true, make the items in the scrum board links."
:type 'boolean
:group 'org-scrum)
(defcustom org-scrum-board-format 3
"Specify the format of the scrum board items.
1. \"id\"
2. \"priority task (closedate)\"
3. \"id. priority task (closedate)\"
4. \"id. owner (closedate)\"
5. \"id. priority task (owner closedate)\""
:type 'integer
:group 'org-scrum)
(defcustom org-scrum-ascii-graph t
"If t, render the classic ascii burndown chart, else embed a fancy --some might say ostentatious-- svg image."
:type 'boolean
:group 'org-scrum)
(defcustom org-scrum-ascii-size '(100 . 30)
"The size (width . height) in characters to make ascii graphs."
:type '(cons number number)
:group 'org-scrum)
(defcustom org-scrum-image-size '(700 . 450)
"The size (width . height) in pixels to make image graphs."
:type '(cons number number)
:group 'org-scrum)
(defun org-scrum--get-developers ()
"Get list of developers as (name . wpd)."
(let (ret)
(setq ret (org-entry-properties (point) 'standard))
(setq ret (seq-filter (lambda (ii) ; filter out non-developer properties
(and
(>= (length (car ii)) 5)
(string= (upcase (substring (car ii) 0 4)) "WPD-")))
ret))
(setq ret (mapcar (function (lambda (ii) (cons ; remove the `wpd-' prefix to get the name
(capitalize (substring (car ii) 4 (length (car ii))))
(string-to-number (cdr ii)))))
ret))
ret))
(defun org-scrum--get-prop-value (match prop)
"Sum values which match MATCH for property PROP in the TASKS tree."
(let ((val 0)
ret)
(setq ret (org-scrum--visit-all-task-todos (lambda () (org-entry-get (point) prop)) match))
(setq ret (seq-filter (lambda (ii) (> (length ii) 0)) ret))
(while ret
(setq val (+ val (string-to-number (pop ret)))))
val))
(defun org-scrum--get-finish-date (hours wpd)
"Count the days to get HOURS work done at WPD hours per day, skipping weekends."
(let ((ret (current-time))
(hoursleft hours)
ctime)
(while (> hoursleft 0)
(setq ret (time-add ret (seconds-to-time 86400)))
(setq ctime (decode-time ret))
(if (and (> (nth 6 ctime) 0) (< (nth 6 ctime) 6))
(setq hoursleft (- hoursleft wpd))))
ret))
(defun org-scrum--get-work-left (cdate closed tot)
"Get the actual work remaining for the date CDATE given the list of closed items CLOSED and total hours TOT.
Returns (list-of-closed-tasks total-remaining-work)"
(let (toremove)
(dolist (item closed)
;; (message "item %s" (format-time-string "%Y-%m-%d %H:%M:%S" (car item)))
(unless (time-less-p cdate (nth 0 item))
(setq tot (- tot (nth 1 item)))
(push item toremove)))
(cons toremove tot)))
(defun org-scrum--draw-progress-bar (est done)
"Draw a progress bar in the summary table with EST total and DONE complete."
(let ((width 10)
(blocksdone 5))
(setq blocksdone (round (* (if (= 0 est) 0 (/ (* done 1.0) est)) width)))
(concat
(apply #'concat (make-list blocksdone "#"))
(apply #'concat (make-list (- width blocksdone) "-")))))
(defun org-scrum--visit-all-task-todos (fcn match)
"Call FCN for all tasks in the current tree that match MATCH."
(save-excursion
(let (tasks)
(org-map-entries (lambda () (setq tasks (point))) "ID=\"TASKS\"")
(goto-char tasks)
;;(message "visiting %s" (buffer-substring (point) (line-end-position)))
(org-map-entries fcn match 'tree))))
(defun org-scrum--make-scrum-board-entry ()
"Make a scrum board entry from a TODO."
(let* ((todo (org-entry-get (point) "TODO"))
(todokwds (append org-not-done-keywords org-done-keywords))
(hdg (nth 4 (org-heading-components)))
(bracket (string-match "\\[" hdg)) ; index of bracket character
(maxlen 30) ; max length of scrum board task name
(priority "[#Z] ") ; default to lowest priority
(closedate "") ; close date without parens
(closedateparens "") ; close date with parens
owner label indx)
(if bracket
(setq hdg (substring hdg 0 (1- bracket))))
(setq indx (- (length todokwds)
(length (member todo todokwds))))
(setq owner (org-entry-get (point) "OWNER"))
(setq hdg (substring hdg 0 (min (length hdg) maxlen))) ; truncate heading
(if (nth 3 (org-heading-components)) ; lookup priority
(setq priority (concat "[#" (make-string 1 (nth 3 (org-heading-components))) "] ")))
(let ((n 0) ; get close date
closetime closestr)
(setq closetime (org-entry-get (point) "CLOSED"))
(unless (null closetime)
(setq closestr (parse-time-string closetime))
(setq closestr (mapcar (function (lambda (x) (if (< (setq n (1+ n)) 4) 0 x))) closestr)) ; clear time of day
(setq closedate (format-time-string " %Y-%m-%d" (apply #'encode-time closestr)))
(setq closedateparens (format-time-string " (%Y-%m-%d)" (apply #'encode-time closestr)))))
(cond ; scrum board label
((= 1 org-scrum-board-format) (setq label (org-entry-get (point) "TASKID")))
((= 2 org-scrum-board-format) (setq label (concat priority hdg " " closedateparens)))
((= 3 org-scrum-board-format) (setq label (concat (org-entry-get (point) "TASKID") ". " priority hdg closedateparens)))
((= 4 org-scrum-board-format) (setq label (concat (org-entry-get (point) "TASKID") ". " owner closedateparens)))
((= 5 org-scrum-board-format) (setq label (concat (org-entry-get (point) "TASKID") ". " priority hdg " (" owner closedate ")"))))
(if org-scrum-board-links
(setq label (org-make-link-string (org-make-org-heading-search-string) label)))
(cons label indx)))
(defun org-dblock-write:block-update-board (_params)
"Generate scrum board."
(interactive)
(let* (todos ; all todos. list of (label . indx)
(todokwds (append org-not-done-keywords org-done-keywords)) ; list of all todo keywords
(counts (make-list (length todokwds) 0)) ; count for each todo kwd
colstr topleft)
(insert "| " (mapconcat #'identity todokwds "|") " |\n|-")
(setq topleft (point))
(setq todos (org-scrum--visit-all-task-todos #'org-scrum--make-scrum-board-entry "TODO<>\"\""))
;; count the number of scrum board entries in each column
(dolist (item todos)
(setcar (nthcdr (cdr item) counts)
(1+ (nth (cdr item) counts))))
(let ((range (number-sequence 1 (length todokwds))) ; range will be '(1 2 3..)
newrow) ; newrow will be "| | | |..."
(setq newrow (concat "|" (mapconcat (lambda (ii) (make-string ii ? )) range "|") "|"))
(goto-char topleft) ; lay out empty table rows
(dotimes (_ii (seq-reduce (lambda (a b) (max a b)) counts 0))
(insert (concat "\n" newrow)))) ; different number of spaces for each col
(let (opentodos ; todos that arent closed
closedtodos) ; todos that are closed
(setq closedtodos (seq-filter (lambda (ii) (string-match "[0-9]\\{4\\}\\-[0-9]\\{2\\}\\-[0-9]\\{2\\}" (car ii))) todos))
(setq opentodos (seq-filter (lambda (ii) (not (string-match "[0-9]\\{4\\}\\-[0-9]\\{2\\}\\-[0-9]\\{2\\}" (car ii)))) todos))
(setq closedtodos (sort ; sort closed tasks by date closed
closedtodos (lambda (a b) (string< (replace-regexp-in-string ".*\\([0-9]\\{4\\}\\-[0-9]\\{2\\}\\-[0-9]\\{2\\}\\).*" "\\1" (car b))
(replace-regexp-in-string ".*\\([0-9]\\{4\\}\\-[0-9]\\{2\\}\\-[0-9]\\{2\\}\\).*" "\\1" (car a))))))
(setq opentodos (sort ; sort open tasks by priority
opentodos (lambda (a b) (string< (nth 1 (split-string (car a) " ")) (nth 1 (split-string (car b) " "))))))
(setq todos (append opentodos closedtodos)))
(dolist (item todos) ; fill in table
(when item
(setcar item (replace-regexp-in-string "\\[#Z\\] " "" (car item)))
(goto-char topleft)
(setq colstr (concat "|" (make-string (1+ (cdr item)) ? ) "|"))
(search-forward colstr) ; find col based on number of spaces
(forward-char -1)
(insert (car item))))
(goto-char topleft)
(org-ctrl-c-ctrl-c)))
(defun org-scrum--create-match (owner todos)
"Get a match string for OWNER and sequence of todo keywords TODOS."
(when (or owner todos)
(let (ownerstr)
(setq ownerstr (if owner (concat "OWNER={^" owner ".*}") ""))
(if (> (length todos) 0)
(mapconcat (lambda (ii) (concat ownerstr "+TODO=\"" ii "\"" )) todos "|")
ownerstr))))
(defun org-dblock-write:block-update-summary (_params)
"Generate scrum summary table."
(let (developers
(est 0) ; hours estimated
(act 0) ; actual hours spent
(done 0) ; hours of estimates that are done
(rem 0)) ; hours of estimates that are left
(setq developers (car (org-map-entries 'org-scrum--get-developers "ID=\"TASKS\"")))
(if (= 0 (length developers))
(error "No developers found (they must have WPD property)"))
(insert "| NAME | ESTIMATED | ACTUAL | DONE | REMAINING | PENCILS DOWN | PROGRESS |\n|-")
(dolist (developer developers)
(setq est (org-scrum--get-prop-value (org-scrum--create-match (car developer) (append org-not-done-keywords org-done-keywords)) "ESTIMATED"))
(setq act (org-scrum--get-prop-value (org-scrum--create-match (car developer) '()) "ACTUAL"))
(setq done (org-scrum--get-prop-value (org-scrum--create-match (car developer) org-done-keywords) "ESTIMATED"))
(setq rem (org-scrum--get-prop-value (org-scrum--create-match (car developer) org-not-done-keywords) "ESTIMATED"))
(insert "\n| " (car developer)
" | " (number-to-string est)
" | " (number-to-string act)
" | " (number-to-string done)
" | " (number-to-string rem)
" | " (format-time-string "%Y-%m-%d" (org-scrum--get-finish-date rem (cdr developer)))
" | " (org-scrum--draw-progress-bar est done)
" |"))
(org-ctrl-c-ctrl-c)))
(defun org-scrum--lookup-closed-tasks ()
"Find tasks which have been closed.
This returns (time-closed estimated taskid) for each closed task found."
(let ((n 0)
closetime closestr)
(setq closetime (org-entry-get (point) "CLOSED"))
(if (null closetime)
(error (concat "\"" (nth 4 (org-heading-components)) "\" is marked DONE but doesn't have a CLOSED date")))
(setq closestr (parse-time-string closetime))
(setq closestr (mapcar (function (lambda (x) (if (< (setq n (1+ n)) 4) 0 x))) closestr)) ; clear time of day
;;(message "%s" (format-time-string "%Y-%m-%d" (apply #'encode-time closestr)))
(list
(apply #'encode-time closestr)
(string-to-number (org-entry-get (point) "ESTIMATED"))
(org-entry-get (point) "TASKID"))))
(defun org-scrum--compute-actual-burndown (start sprintlength tot)
"Compute actual burndown for each day of the sprint.
The sprint starts at date START and lasts SPRINTLENGTH days. TOT
is the total number of story points for the sprint."
(let ((left tot) ; total actually left
(closed (org-map-entries #'org-scrum--lookup-closed-tasks (org-scrum--create-match nil org-done-keywords))) ; list of (date est num) for each task that was completed
(today (current-time)) ; know when today is because we can't fill in the future burndown
(cdate start) ; the date of the current date as we iterate
(day 0) ; counts the days as we iterate
actual-burndown) ; the list of burndown by day
(while (<= day sprintlength)
(setq cdate (time-add cdate (seconds-to-time 86400))) ; increment current day
(if (time-less-p cdate today)
(let ((toremove nil)
(ret (org-scrum--get-work-left cdate closed left)))
(setq toremove (car ret) ; save list of completed tasks
left (cdr ret) ; save new total
closed (seq-remove (lambda (x) (seq-contains toremove x)) closed) ; remove tasks that have been counted
actual-burndown (cons (number-to-string left) actual-burndown)))
(setq actual-burndown (cons "" actual-burndown)))
(setq day (1+ day)))
(reverse actual-burndown)))
(defun org-scrum--compute-ideal-burndown (start sprintlength tot)
"Compute ideal burndown for each day of the sprint.
The sprint starts at START and lasts SPRINTLENGTH days. TOT is
the total number of story points for the sprint."
(let ((cdate start) ; the current date as we iterate
(day 0) ; counts the days as we iterate
ctime ; holds extracted date components
ideal-burndown) ; the list of burndown by day
;; find weekdays. make `ideal-burndown' a list of days where each weekday is t
(while (< day sprintlength)
(setq ctime (decode-time cdate)
ideal-burndown (cons (and (> (nth 6 ctime) 0) (< (nth 6 ctime) 6)) ideal-burndown)
cdate (time-add cdate (seconds-to-time 86400)) ; increment current day
day (1+ day))) ; increment day counter
(reverse ideal-burndown)
;; compute the ideal burndown rate and use it to fill in `ideal-burndown'
(let* ((count (seq-reduce (lambda (c ii) (if ii (1+ c) c)) ideal-burndown 0)) ; count weekdays
(rate (/ (float tot) count))
(left tot))
(dotimes (day (length ideal-burndown))
(if (nth day ideal-burndown)
(setq left (max 0 (- left rate))))
(setcar (nthcdr day ideal-burndown) left)))
ideal-burndown))
(defun org-scrum--compute-burndown ()
"Compute ideal and actual burndown for each day of the sprint.
Returns a list of (date actual ideal)."
(let* ((tot (org-scrum--get-prop-value nil "ESTIMATED")) ; total estimated hours
cdate ; current date for iterating
sprintlength) ; number of calendar days in the sprint
;; look up start date and sprint length
(org-map-entries (lambda ()
(setq cdate (time-subtract (apply #'encode-time (org-fix-decoded-time (parse-time-string (org-entry-get (point) "SPRINTSTART"))))
(seconds-to-time 86400))) ; day before sprint start
(setq sprintlength (string-to-number (org-entry-get (point) "SPRINTLENGTH"))))
"ID=\"TASKS\"")
(if (or (null cdate) (null sprintlength))
(error "Couldn't find node with ID=\"TASKS\" containing \"SPRINTLENGTH\" and \"SPRINTSTART\" properties"))
(cl-mapcar #'list ; this zips the lists together
(number-sequence 1 sprintlength)
(org-scrum--compute-actual-burndown cdate sprintlength tot)
(org-scrum--compute-ideal-burndown cdate sprintlength tot))))
(defun org-scrum--check-gnuplot-exists ()
"Check if gnuplot is installed on the system."
(unless (eq 0 (call-process-shell-command "gnuplot --version"))
(error "Cannot find gnuplot")))
(defun org-scrum--make-gnuplot-config (burndown-data)
"Write a gnuplot config (including inline data taken from
BURNDOWN-DATA) to the current buffer, which should be empty."
(cond (org-scrum-ascii-graph
(insert (format "set term dumb size %d, %d\n\n" (car org-scrum-ascii-size) (cdr org-scrum-ascii-size)))
(insert "set style line 1 lt 1 lw 1\n")
(insert "set style line 2 lt 2 lw 1\n"))
(t
(insert (format "set term svg size %d, %d background \"white\"\n\n"
(car org-scrum-image-size)
(cdr org-scrum-image-size)))
(insert (format "set output \"burndown.svg\"\n"))
(insert "set style line 1 lt -1 lw 2 lc \"#399320\"\n")
(insert "set style line 2 lt 0 lw 1\n")))
(insert "set title \"Burndown\"\n")
(insert "set xlabel \"day\"\n")
(insert "set ylabel \"points\"\n")
(insert (format "set xrange [1:%d]\n" (length burndown-data)))
(insert "plot \"-\" using 1:2 with lines ls 1 title \"actual\", \"\" using 1:3 with lines ls 2 title \"ideal\"\n")
(insert (mapconcat (lambda (row) (apply #'format (cons "%d %s %s" row)))
burndown-data
"\n"))
(insert "\ne\n")
;; gnuplot makes you include the data twice if you want to plot two lines and provide the data inline
(insert (mapconcat (lambda (row) (apply #'format (cons "%d %s %s" row)))
burndown-data
"\n"))
(insert "\ne\n"))
(defun org-dblock-write:block-update-graph (_params)
"Generate burndown chart."
(org-scrum--check-gnuplot-exists)
(goto-char (point-min))
(re-search-forward "#\\+BEGIN: .*block-update-graph") ; must exist
(forward-line 1) ; move into dynamic block
(let ((buffer (current-buffer))
(burndown-data (org-scrum--compute-burndown))
(pt (point)))
(with-temp-buffer
(org-scrum--make-gnuplot-config burndown-data)
(call-process-region (point-min) (point-max) "gnuplot" nil buffer)
(set-buffer buffer)
(if (not org-scrum-ascii-graph)
(progn
(insert "[[./burndown.svg]]") ; using an org link instead of embedding the image
(org-display-inline-images)) ; so it gets exported correctly
(goto-char pt)
(while (re-search-forward "\f" nil t) ; delete the formfeed in gnuplot output
(replace-match ""))
(while (not (looking-at "#\\+END")) ; prefix graph lines so org exports them cleanly
(insert ":")
(forward-line 1))
(save-restriction
(narrow-to-region pt (point))
(goto-char pt) ; the default linestyle with dots also has '+'s at the points
(while (re-search-forward "#" nil t) ; which make the graph busier, so we use '#' and then swap them
(replace-match "\."))))))) ; for dots
(defun org-scrum-reset-taskids ()
"Replace taskids of all todos in the tasks tree with consecutive values."
(interactive)
(save-excursion
(let ((ii 1))
(org-scrum--visit-all-task-todos (lambda ()
(org-entry-put (point) "TASKID" (format "%s%02d" org-scrum-taskid-prefix ii))
(setq ii (1+ ii)))
"TODO<>\"\""))))
(defun org-scrum-generate-task-cards ()
"Generate scrum board task cards in latex format.
This depends on latex and the multirow style installed on the
system. The result is the file \"scrum_cards.pdf\"."
(interactive)
(save-excursion
(let (tex-content)
(setq tex-content (concat "
\\documentclass[letterpaper,12pt]{article}
\\usepackage[top=0.75in, bottom=0.75in, left=0.75in, right=0.75in]{geometry}
\\setlength{\\columnsep}{0.75in}
\\let\\TAB\\tabular
\\renewcommand\\tabular{\\noindent\\TAB}
\\usepackage{multirow}
\\begin{document}
\\pagestyle{empty}
\\twocolumn
\n"
(mapconcat #'identity
(org-scrum--visit-all-task-todos #'org-scrum--generate-task-card "TODO<>\"\"")
"\n")
"\n\\end{document}\n"))
(with-temp-file "scrum_cards.tex"
(insert tex-content))
(shell-command "texi2pdf scrum_cards.tex"
(get-buffer-create "*Standard output*")))))
(defun org-scrum--generate-task-card ()
(let* ((hdg (nth 4 (org-heading-components)))
(bracket (string-match "\\[" hdg)) ; index of bracket character
(id (or (org-entry-get (point) "TASKID") "\\_\\_\\_"))
(owner (or (org-entry-get (point) "OWNER") "\\_\\_\\_"))
(est (or (org-entry-get (point) "ESTIMATED") "\\_\\_\\_")))
(if bracket
(setq hdg (substring hdg 0 (1- bracket))))
(format "
\\vspace{0.4in}
\\filbreak
\\begin{tabular}{l r}
estimate: %s & id: %s \\\\
actual: \\_\\_\\_ & owner: %s \\\\
\\hline
\\multicolumn{2}{p{\\columnwidth}}{%s} \\\\
\\end{tabular}
" est id owner hdg)))
;;;###autoload
(defun org-scrum-update-all ()
"Update all dynamic blocks in a scrum org file."
(interactive)
(save-excursion
(let (found)
(goto-char (point-min))
(setq found (re-search-forward "#\\+BEGIN: columnview .* :id \"TASKS\"" nil t))
(if (not found)
(error "A columnview with \"TASKS\" id not found"))
(org-ctrl-c-ctrl-c)
(goto-char (point-min))
(setq found (re-search-forward "#\\+BEGIN: block-update-summary" nil t))
(if (not found)
(error "\"block-update-summary\" not found"))
(org-ctrl-c-ctrl-c)
(goto-char (point-min))
(setq found (re-search-forward "#\\+BEGIN: block-update-board" nil t))
(if (not found)
(error "\"block-update-board\" not found"))
(org-ctrl-c-ctrl-c)
(goto-char (point-min))
(setq found (re-search-forward "#\\+BEGIN: block-update-graph" nil t))
(if (not found)
(error "\"block-update-graph\" not found"))
(org-ctrl-c-ctrl-c))))
(provide 'org-scrum)
;;; org-scrum.el ends here