File: enterprise-review-workflow.ini

package info (click to toggle)
trac 1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,452 kB
  • ctags: 8,602
  • sloc: python: 71,206; makefile: 358; sh: 79; xml: 10
file content (84 lines) | stat: -rw-r--r-- 2,375 bytes parent folder | download | duplicates (4)
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
; enterprise-review-workflow.ini
; Add CodeReviewActionController to the workflow option in [ticket].  If there
; is no workflow option, the line will look like this:
; workflow = ConfigurableTicketWorkflow,CodeReviewActionController


[ticket-workflow]

; assign, reassign, unassign actions
assign = new -> assigned
assign.operations = set_owner
assign.permissions = TICKET_MODIFY

reassign = assigned,in_work -> assigned
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY

reassign_closed = closed -> closed
reassign_closed.label = reassign
reassign_closed.operations = set_owner
reassign_closed.permissions = TICKET_MODIFY

unassign = assigned,in_work -> new
unassign.operations = del_owner
unassign.permissions = TICKET_MODIFY

; leave actions
leave = * -> *
leave.operations = leave_status
leave.default = 1

; resolve actions
resolve = in_QA -> closed
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY

fail = in_QA -> assigned
fail.permissions = TICKET_MODIFY

; start/stop actions
start = assigned -> in_work
start.operations = set_owner_to_self
start.permissions = TICKET_MODIFY

stop = in_work -> assigned
stop.permissions = TICKET_MODIFY

; reopen actions
reopen = closed -> new
reopen.operations = del_resolution
reopen.permissions = TICKET_CREATE

; needinfo actions
; For tickets with an owner, they go back to assigned
needinfo = assigned,in_work,in_QA -> needinfo
needinfo.permissions = TICKET_MODIFY

infoprovided = needinfo -> assigned
infoprovided.permissions = TICKET_MODIFY
infoprovided.default = 2

; But tickets without an owner go back to new.
needinfo_new = new -> needinfo_new
needinfo_new.label = needinfo
needinfo_new.permissions = TICKET_MODIFY

infoprovided_new = needinfo_new -> new
infoprovided_new.permissions = TICKET_MODIFY
infoprovided_new.default = 2

; review actions
request_review = in_work -> in_review

review = in_review -> *
review.operations = code_review,hidden
; A reviewer can approve the work as-is, approve the work with a few things
; that need touched-up, but that won't need further review, or request changes
; significant enough that another review will be needed.
review.code_review = approve -> in_QA,
                     approve as noted -> post_review,
                     request changes -> in_work
review.permissions = TICKET_REVIEW

submit_to_test = post_review -> in_QA