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

Automation: Ability to use variable outside of a block - variable is not updated on main branch if created inside an if/else or branch block

    • 0
    • 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.

      If there is a requirement that involves creating a variable inside a branch or if/else block, the same variable will not hold the value when used outside of the block.

      For example, suppose a rule is triggered when an issue is created. For all the issues with a similar issue description as the trigger issue, a variable is created containing all issue keys. When the same variable is printed outside the branch, it returns no values:

      Expected behaviour:

      It should return the same value as the variable is used in the same rule.

      Current behaviour:

      The variable is not accessible - if we try to access the variable, it will return an empty value.

            [AUTO-154] Automation: Ability to use variable outside of a block - variable is not updated on main branch if created inside an if/else or branch block

            Enida made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 1016906 ]
            Makarand Gomashe made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 999878 ]
            SET Analytics Bot made changes -
            UIS Original: 1 New: 0
            Charlie Gavey made changes -
            Link New: This issue is duplicated by AUTO-1260 [ AUTO-1260 ]
            Makarand Gomashe made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 928289 ]
            Enida made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 916640 ]
            Arvind Kishore made changes -
            Link New: This issue relates to AUTO-1260 [ AUTO-1260 ]
            Armando Neto made changes -
            Link New: This issue is related to JIRAAUTOSERVER-1010 [ JIRAAUTOSERVER-1010 ]
            Franklin Ayres made changes -
            Link New: This issue is related to JIRAAUTOSERVER-985 [ JIRAAUTOSERVER-985 ]
            Gabi Paludo made changes -
            Summary Original: Automation: Ability to use variable outside of a block - smart value is not updated on main branch if created inside a if/else or branch block New: Automation: Ability to use variable outside of a block - variable is not updated on main branch if created inside an if/else or branch block

              89403358cf11 Charlie Gavey
              3033da771e98 Ashutosh Sharma
              Votes:
              114 Vote for this issue
              Watchers:
              70 Start watching this issue

                Created:
                Updated: