Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-490

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

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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")}} 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jnavin James Navin
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: