Merge "Rudimentary Templates for Tasks"
This commit is contained in:
commit
de29593e97
@ -335,6 +335,7 @@ class Task(FullText, ModelBuilder, Base):
|
||||
story_id = Column(Integer, ForeignKey('stories.id'))
|
||||
project_id = Column(Integer, ForeignKey('projects.id'))
|
||||
assignee_id = Column(Integer, ForeignKey('users.id'), nullable=True)
|
||||
assignee = relationship('User', foreign_keys=[assignee_id])
|
||||
branch_id = Column(Integer, ForeignKey('branches.id'), nullable=True)
|
||||
milestone_id = Column(Integer, ForeignKey('milestones.id'), nullable=True)
|
||||
priority = Column(Enum(*_TASK_PRIORITIES), default='medium')
|
||||
|
8
storyboard/plugin/email/templates/task/POST.txt
Normal file
8
storyboard/plugin/email/templates/task/POST.txt
Normal file
@ -0,0 +1,8 @@
|
||||
Task "{{resource.title}}" was created by {{author.full_name}}:
|
||||
|
||||
URL: {{url}}#!/story/{{resource.story.id}}
|
||||
Story: {{resource.story.title}}
|
||||
Project: {{resource.project.name}}
|
||||
Assignee: {{resource.assignee.full_name}}
|
||||
Status: {{resource.status}}
|
||||
Priority: {{resource.priority}}
|
1
storyboard/plugin/email/templates/task/POST_subject.txt
Normal file
1
storyboard/plugin/email/templates/task/POST_subject.txt
Normal file
@ -0,0 +1 @@
|
||||
Task "{{resource.title}}" was created.
|
15
storyboard/plugin/email/templates/task/PUT.txt
Normal file
15
storyboard/plugin/email/templates/task/PUT.txt
Normal file
@ -0,0 +1,15 @@
|
||||
Task "{{resource.title}}" was updated by {{author.full_name}}:
|
||||
|
||||
URL: {{url}}#!/story/{{resource.story.id}}
|
||||
|
||||
Full Task Details:
|
||||
|
||||
Task: {{resource.title}}
|
||||
Story: {{resource.story.title}}
|
||||
Project: {{resource.project.name}}
|
||||
Assignee: {{resource.assignee.full_name}}
|
||||
Status: {{resource.status}}
|
||||
Priority: {{resource.priority}}
|
||||
|
||||
Type of Change: {{after}}
|
||||
(prior to change, {{before}} )
|
1
storyboard/plugin/email/templates/task/PUT_subject.txt
Normal file
1
storyboard/plugin/email/templates/task/PUT_subject.txt
Normal file
@ -0,0 +1 @@
|
||||
Task "{{resource.title}}" was updated.
|
Loading…
x
Reference in New Issue
Block a user