|
167 | 167 | if (issue.parent != undefined) { |
168 | 168 | console.log ("found parent:" + issue.parent); |
169 | 169 | jQuery('.parent',ticketCard).html(issue.parent.id).attr('href',relativeUrl+'/issues/'+issue.parent.id); |
170 | | - jQuery('.histoire').show(); |
171 | 170 | } else { |
172 | 171 | console.log ("not found parent:" + issue.parent); |
| 172 | + jQuery('.histoire',ticketCard).hide(); |
173 | 173 | } |
174 | 174 | jQuery('.subject',ticketCard).html(issue.subject); |
175 | 175 |
|
176 | 176 | if(issue.story_points != null){ |
177 | 177 | jQuery('.estimation',ticketCard).html(issue.story_points); |
178 | 178 | }else{ |
179 | | - jQuery('.estimation',ticketCard).html(); |
| 179 | + jQuery('.estimation',ticketCard).hide(); |
180 | 180 | } |
181 | 181 |
|
182 | | - jQuery('.line.custom-field').hide(); |
| 182 | + jQuery('.line.custom-field', ticketCard).hide(); |
183 | 183 | if(issue.custom_fields){ |
| 184 | + jQuery('.description',ticketCard).hide(); |
184 | 185 | for (var i=0;i<issue.custom_fields.length;i++){ |
185 | | - jQuery('.line.custom-field.anomalie').hide(); |
186 | 186 | if(issue.custom_fields[i].name === "Type d'anomalie"){ |
187 | 187 | jQuery('.anomalie span',ticketCard).html(issue.custom_fields[i].value[0]); |
188 | | - jQuery('.line.custom-field.anomalie').show(); |
| 188 | + jQuery('.line.custom-field.anomalie',ticketCard).show(); |
189 | 189 | } |
190 | 190 | if(issue.custom_fields[i].name==="Conditions de d\u00e9part"){ |
191 | | - jQuery('.start').show(); |
| 191 | + jQuery('.start',ticketCard).show(); |
192 | 192 | if(issue.custom_fields[i].value){ |
193 | 193 | jQuery('.start span',ticketCard).html(issue.custom_fields[i].value); |
194 | 194 | } |
195 | 195 | } |
196 | 196 | if(issue.custom_fields[i].name==="Conditions d'acceptation"){ |
197 | | - jQuery('.finish').show(); |
| 197 | + jQuery('.finish',ticketCard).show(); |
198 | 198 | if(issue.custom_fields[i].value){ |
199 | 199 | jQuery('.finish span',ticketCard).html(issue.custom_fields[i].value); |
200 | 200 | } |
201 | 201 | } |
202 | 202 | } |
| 203 | + } else { |
| 204 | + jQuery('.description span',ticketCard).html(issue.description); |
203 | 205 | } |
204 | 206 |
|
205 | 207 | ticketCard.addClass("priority"+issue.priority.id); |
|
0 commit comments