-
-
Notifications
You must be signed in to change notification settings - Fork 212
/
bug-tracker.jdl
81 lines (68 loc) · 1.32 KB
/
bug-tracker.jdl
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
entity Project {
name String
}
entity Label {
label String required minlength(3)
}
application {
config {
prodDatabaseType postgresql,
}
entities *
}
entity Ticket {
title String required
description String
dueDate LocalDate
date ZonedDateTime
status Status
type Type
priority Priority
}
entity Attachment {
name String required minlength(3)
file Blob
}
relationship ManyToMany {
Ticket{label(label)} to Label{ticket}
}
relationship ManyToOne {
Ticket{project(name)} to Project
Ticket{assignedTo(login)} to User with builtInEntity
Ticket{reportedBy(login)} to User with builtInEntity
Comment{login} to User with builtInEntity
}
relationship OneToMany {
Comment{parent} to Comment{child}
Ticket to Attachment
}
enum Status {
OPEN("Open")
WAITING_FOR_RESPONSE("Waiting for Customer Response")
CLOSED("Closed")
DUPLICATE("Duplicate")
IN_PROGRESS("In Progress")
REOPENED("Reopened")
CANNOT_REPRODUCE("Cannot Reproduce")
SOLVED("Solved")
WONT_IMPLEMENT("Won't Implement")
VERIFIED("Verified")
}
enum Type {
BUG("Bug"),
FEATURE("Feature")
}
enum Priority {
HIGHEST("Highest")
HIGHER("Higher")
HIGH("High")
NORMAL("Normal")
LOW("Low")
LOWER("Lower")
LOWERST("Lowest")
}
entity Comment {
date ZonedDateTime
text String
}
paginate Ticket with pagination