new fields: priority, activity
This commit is contained in:
parent
ba529fad7b
commit
0aeb854014
1 changed files with 5 additions and 3 deletions
|
@ -100,7 +100,8 @@ def workItemStates():
|
||||||
initialState='new')
|
initialState='new')
|
||||||
|
|
||||||
|
|
||||||
fieldNames = ['title', 'description', 'deadline', 'start', 'end',
|
fieldNames = ['title', 'description', 'deadline', 'priority', 'activity',
|
||||||
|
'start', 'end',
|
||||||
'duration', 'effort',
|
'duration', 'effort',
|
||||||
'comment', 'party'] # for use in editingRules
|
'comment', 'party'] # for use in editingRules
|
||||||
|
|
||||||
|
@ -142,7 +143,8 @@ class WorkItemType(object):
|
||||||
self.title = title
|
self.title = title
|
||||||
self.description = description
|
self.description = description
|
||||||
self.actions = actions or list(editingRules)
|
self.actions = actions or list(editingRules)
|
||||||
self.fields = fields or ('deadline', 'start-end', 'duration-effort')
|
self.fields = fields or ('deadline', 'priority', 'activity',
|
||||||
|
'start-end', 'duration-effort')
|
||||||
self.indicator = indicator
|
self.indicator = indicator
|
||||||
self.delegatedState = delegatedState
|
self.delegatedState = delegatedState
|
||||||
self.prefillDate = prefillDate
|
self.prefillDate = prefillDate
|
||||||
|
@ -182,7 +184,7 @@ class WorkItem(Stateful, Track):
|
||||||
statesDefinition = 'organize.workItemStates'
|
statesDefinition = 'organize.workItemStates'
|
||||||
|
|
||||||
initAttributes = set(['workItemType', 'party', 'title', 'description',
|
initAttributes = set(['workItemType', 'party', 'title', 'description',
|
||||||
'deadline', 'start', 'end',
|
'deadline', 'priority', 'activity', 'start', 'end',
|
||||||
'duration', 'effort'])
|
'duration', 'effort'])
|
||||||
|
|
||||||
def __init__(self, taskId, runId, userName, data):
|
def __init__(self, taskId, runId, userName, data):
|
||||||
|
|
Loading…
Add table
Reference in a new issue