Update timeline templates

stable
Álex Hermida 2018-04-10 12:43:02 +02:00
parent da12da88eb
commit b1668eef9f
3 changed files with 5 additions and 1 deletions

View File

@ -143,6 +143,7 @@
"SEVERITY": "Severity",
"PRIORITY": "Priority",
"ASSIGNED_TO": "Assigned to",
"ASSIGNED_USERS": "Assigned users",
"POINTS": "Points",
"IS_BLOCKED": "is blocked",
"REF": "Ref",

View File

@ -31,6 +31,7 @@ class UserTimelineItemTitle
'description_diff': 'COMMON.FIELDS.DESCRIPTION',
'points': 'COMMON.FIELDS.POINTS',
'assigned_to': 'COMMON.FIELDS.ASSIGNED_TO',
'assigned_users': 'COMMON.FIELDS.ASSIGNED_USERS',
'severity': 'ISSUES.FIELDS.SEVERITY',
'priority': 'ISSUES.FIELDS.PRIORITY',
'type': 'ISSUES.FIELDS.TYPE',
@ -172,7 +173,8 @@ class UserTimelineItemTitle
getTitle: (timeline, event, type) ->
params = @._getParams(timeline, event, type)
# console.log(timeline)
# console.log(event)
paramsKeys = {}
Object.keys(params).forEach (key) -> paramsKeys[key] = '{{' +key + '}}'

View File

@ -33,6 +33,7 @@ class UserTimelineService extends taiga.Service
'status',
'subject',
'description_diff',
'assigned_users',
'assigned_to',
'points',
'severity',