Automation Smart value iterations don't have access to the original issue variable

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • Component/s: None
    • None

      Issue Summary

      When iterating over a collection in smart values it would be useful to be able to access e.g. the original issue variable within the iteration.

      Steps to Reproduce

       

      {{#issue."Affected Status Page Components"}} "{{value.split("#").get(1)}}": "{{issue."Status Page Component Status"}}"{{^last}}, {{/}}{{/}} 

       

      Expected Results

      Expect to be able to access the `issue` variable

      Actual Results

      Returns an empty string rather than the issue variable

      Workaround

      The expression can sometimes be re-formed as a mapping over the collection rather than an iteration:

       

      {{issue."Affected Status Page Components".value.split("#").get(1).concat(":").concat(issue."Status Page Component Status")}} 

       

              Assignee:
              Unassigned
              Reporter:
              James Navin
              Votes:
              13 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: