atlassian - Failed to load resource:soy template {Not all code is in Soy V 2 syntax (found file simple.soy not in Soy V2 syntax). } -
i have 2 soy templates in plugin 1 of them loads fine other not getting loaded 500 internal server error. attaching error console.


here code have:
{namespace jira.templates.impacttemplate.impactrow} /** * render information page requirement template. * @param actor : string @param impact: string * */ {template .renderimpactrow} <tr class="impact-soy" data-key="{$impact}" > /*<td><a href="#" id="button"><span class="key">{$productname}</span></a></td>*/ <td><span class="key">{$impact}</span></td> <td><span class="name">{$actor}</span></td> </tr> {/template}
finally figure out solution:
there should not blank line after soy doc comment.
@param impact: string should @param impact : string here actual working code:
/** * render impact. * @param new_actor : string * @param impact : string */ {template .renderimpactrow} <tr class="impact-soy" data-key="{$impact}" > <td><span class="key">{$impact}</span></td> <td><span class="name">{$new_actor}</span></td> </tr> {/template}
Comments
Post a Comment