You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# all sheets that can be importes should be mapped here
42
+
sheets:
43
+
#1st sheet definition
44
+
demandas:
45
+
# sheet Name, not used unless you add a web form that might use this name.
46
+
name: Planilla de Relevamiento de Demandas Area de Nuevos Medios
47
+
# each sheet could host several record types, here's each definition
48
+
records:
49
+
# recordName use as index to select this config in [Run customization]
50
+
demanda:
51
+
# record Label, not used.
52
+
name: Demanda
53
+
# Redmine Objects/Entities that are related to sheet's data.
54
+
entities:
55
+
# Issue object
56
+
Issue:
57
+
# previously relatd to Doctrien 1.X adapted to Redmine issue types.
58
+
# Not used schema_entity: ~ # si entities[entName] no coincide con el esquema setear este valor
59
+
# object deefault values (in this case Issue) can be [callbackClass, Callbackmethod]
60
+
# these default need not to be in the sheet, but might be mandatory for the API.
61
+
# you could also use defaults for cusotm fields here, just with the name.
62
+
defaults:
63
+
project: A Nuevos Medios, Seguimiento de Demandas
64
+
status: Nueva
65
+
priority: Normal
66
+
assigned_to_id: 92
67
+
author: 'juan'
68
+
due_date: ~
69
+
start_date: [Defaults\Defaults, startDate]
70
+
tracker: Demanda
71
+
"Fecha Comprometido": '2013-11-01'
72
+
Beneficiario: N/N
73
+
subject: 'Sin Asunto'
74
+
Intermediario: '-----------------'
75
+
76
+
# These are the fields expected to be present in the CSV or any other sheet like input
77
+
# next definition matched a CSV as follows (showing two records):
78
+
# [Subject;Description;Sprint] the rest of mandatory values are defined above for "Issue"
79
+
# subject1;Description1;8
80
+
# subject2;Description2;8
81
+
fields:
82
+
# field name
83
+
beneficiario:
84
+
# this key relates this field with Redmine's model described above
85
+
model: {entity: 'Issue', column: 'Beneficiario'}
86
+
# This are the coordinates, where the parser tries to find the 1st occurrence of the field.
87
+
# Zero based. from the upper-left corner
88
+
coord: {x: 1, y: 0}
89
+
# default value for this field. ovverides other defaults possibly defined above.
90
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
91
+
# necesary moves to reach next instance of this field, e.i. next record. Normally it'll be just
92
+
# one step down. (Y+1, X+0). But for values in headers, that appears only once, might be
93
+
# (Y+0, X+0) so, the same value is used for every record.
94
+
increment: {x: 0, y: 1}
95
+
# callback that might be needed to transform input data before being persisted.
96
+
transform: ~ # a callback method
97
+
98
+
subject:
99
+
model: {entity: 'Issue', column: 'subject'} # entity referencia entities[entity] no al schema. Para eso está entities[entity][schema_entity], en caso de que difiera.
100
+
coord: {x: 3, y: 0}
101
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
102
+
increment: {x: 0, y: 1} # ~ = {x: 0, y: 0} if field is recurrent increment determines the relative loction of the next sibling. ~ means the field is no recurrent, only appears once in a sheet-
103
+
transform: [Transformers\Transformer, asunto] # a callback method
104
+
105
+
intermediario:
106
+
model: {entity: 'Issue', column: 'Intermediario'} # entity referencia entities[entity] no al schema. Para eso está entities[entity][schema_entity], en caso de que difiera.
107
+
coord: {x: 2, y: 0}
108
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
109
+
increment: {x: 0, y: 1} # ~ = {x: 0, y: 0} if field is recurrent increment determines the relative loction of the next sibling. ~ means the field is no recurrent, only appears once in a sheet-
110
+
transform: [Transformers\Transformer, intermediario] # a callback method
111
+
112
+
description:
113
+
model: {entity: 'Issue', column: 'description', glue: '| '} # entity referencia entities[entity] no al schema. Para eso está entities[entity][schema_entity], en caso de que difiera.
114
+
coord: {x: 3, y: 0}
115
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
116
+
increment: {x: 0, y: 1} # ~ = {x: 0, y: 0} if field is recurrent increment determines the relative loction of the next sibling. ~ means the field is no recurrent, only appears once in a sheet-
117
+
transform: ~ # a callback method
118
+
119
+
localidad:
120
+
model: { entity: 'Issue', column: 'Localidad'} # entity referencia entities[entity] no al schema. Para eso está entities[entity][schema_entity], en caso de que difiera.
121
+
coord: {x: 0, y: 0}
122
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
123
+
increment: {x: 0, y: 1} # ~ = {x: 0, y: 0} if field is recurrent increment determines the relative loction of the next sibling. ~ means the field is no recurrent, only appears once in a sheet-
124
+
transform: [Transformers\Transformer, localidad] # a callback method
125
+
126
+
estado:
127
+
model: { entity: 'Issue', column: 'status'} # entity referencia entities[entity] no al schema. Para eso está entities[entity][schema_entity], en caso de que difiera.
128
+
coord: {x: 4, y: 0}
129
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
130
+
increment: {x: 0, y: 1} # ~ = {x: 0, y: 0} if field is recurrent increment determines the relative loction of the next sibling. ~ means the field is no recurrent, only appears once in a sheet-
131
+
transform: [Transformers\Transformer, estado] # a callback method
132
+
133
+
observaciones:
134
+
model: { entity: 'Issue', column: 'description', glue: '| '} # entity referencia entities[entity] no al schema. Para eso está entities[entity][schema_entity], en caso de que difiera.
135
+
coord: {x: 5, y: 0}
136
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
137
+
increment: {x: 0, y: 1} # ~ = {x: 0, y: 0} if field is recurrent increment determines the relative loction of the next sibling. ~ means the field is no recurrent, only appears once in a sheet-
138
+
transform: ~ # a callback method
139
+
140
+
fecha_inicio:
141
+
model: { entity: 'Issue', column: 'start_date'} # entity referencia entities[entity] no al schema. Para eso está entities[entity][schema_entity], en caso de que difiera.
142
+
coord: {x: 6, y: 0}
143
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
144
+
increment: {x: 0, y: 1} # ~ = {x: 0, y: 0} if field is recurrent increment determines the relative loction of the next sibling. ~ means the field is no recurrent, only appears once in a sheet-
145
+
transform: [Transformers\Transformer, fecha] # a callback method
146
+
147
+
localidad_en_descripcion:
148
+
model: { entity: 'Issue', column: 'description', glue: '| '} # entity referencia entities[entity] no al schema. Para eso está entities[entity][schema_entity], en caso de que difiera.
149
+
coord: {x: 0, y: 0}
150
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
151
+
increment: {x: 0, y: 1} # ~ = {x: 0, y: 0} if field is recurrent increment determines the relative loction of the next sibling. ~ means the field is no recurrent, only appears once in a sheet-
152
+
transform: ~ # a callback method
153
+
#2st sheet definition
154
+
iprodich:
155
+
# sheet Name, not used unless you add a web form that might use this name.
156
+
name: iprodich
157
+
# each sheet could host several record types, here's each definition
158
+
records:
159
+
# recordName use as index to select this config in [Run customization]
160
+
iprodich:
161
+
# record Label, not used.
162
+
name: iprodich
163
+
# Redmine Objects/Entities that are related to sheet's data.
164
+
entities:
165
+
# Issue object
166
+
Issue:
167
+
# previously relatd to Doctrien 1.X adapted to Redmine issue types.
168
+
# Not used schema_entity: ~ # si entities[entName] no coincide con el esquema setear este valor
169
+
# object deefault values (in this case Issue) can be [callbackClass, Callbackmethod]
170
+
# these default need not to be in the sheet, but might be mandatory for the API.
171
+
# you could also use defaults for cusotm fields here, just with the name.
172
+
defaults:
173
+
project: Gestión I.Pro.Di.Ch
174
+
status: Nueva
175
+
priority: Normal
176
+
assigned_to: juanmf
177
+
author: 'juan'
178
+
due_date: ~
179
+
start_date: [Defaults\Defaults, startDate]
180
+
tracker: Demanda
181
+
"Fecha Comprometido": '2013-11-01'
182
+
subject: 'Sin Asunto'
183
+
sprint: 8
184
+
185
+
# These are the fields expected to be present in the CSV or any other sheet like input
186
+
# next definition matched a CSV as follows (showing two records):
187
+
# [Subject] the rest of mandatory values are defined above for "Issue"
188
+
# subject1
189
+
fields:
190
+
# field name
191
+
subject:
192
+
model: {entity: 'Issue', column: 'subject'} # entity referencia entities[entity] no al schema. Para eso está entities[entity][schema_entity], en caso de que difiera.
193
+
coord: {x: 0, y: 0}
194
+
default: ~ # Si !== ~ pisa al default del schema y al default en [entities]
195
+
increment: {x: 0, y: 1} # ~ = {x: 0, y: 0} if field is recurrent increment determines the relative loction of the next sibling. ~ means the field is no recurrent, only appears once in a sheet-
196
+
transform: [Transformers\Transformer, asunto] # a callback method
0 commit comments