I have two soy templates in my plugin one of them loads fine but other is not getting loaded with 500 Internal server error. I am attaching the error from console.

enter image description here

enter image description here

Here is the code I have:

    {namespace JIRA.Templates.Impacttemplate.ImpactRow}

/**
 * Render the information page for the 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}
1

There are 1 best solutions below

1
On

Finally I could figure out the solution:

There should not be blank line after soy doc comment.

@param impact: string should be like @param impact : string

Here is the actual working code:

/**
 * Render the 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}