Iterating over approvers list via smart values does not produce the correct output

XMLWordPrintable

    • 5
    • Minor
    • 0

      Issue Summary

      When doing a list operation on the approvers list of a Jira Service Desk issue, the result is not what the user configured.

      Example template code:

      Steps to Reproduce

      1. Create a rule with Issue Create trigger
      2. Try to retrieve below smart values in Add comment action
        <ul>
        {{#issue.customfield_10027.approvers}}
        <li>
        {{approver.displayName}} - {{approverDecision}}
        </li>
        {{/}}
        </ul>
        

      Expected Results

      Thomas - Approved
      Anna - Pending

      Actual Results

      Thomas, Anna - Approved, Pending

      Workaround

      Steps: Follow the syntax below to iterate over approver list
      <ul>
      {{#issue.customfield_10003}}
      {{#approvers}}
      <li>
      {{approver.displayName}} - {{approverDecision}}
      </li>
      {{/}}
      {{/}}
      </ul>
      
      Reference documentation: Automation smart values

            Assignee:
            Unassigned
            Reporter:
            Prince N (Inactive)
            Votes:
            10 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: