Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-1010

Inconsistency around the availability of variables created within a branch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 9.0.3, 9.1.1
    • Actions
    • Severity 3 - Minor

      Issue Summary

      When using the "Create variable" action within a branch, the variable created by this action is not available outside a branch.

      This is a feature limitation tracked in JIRAAUTOSERVER-985 - Ability to use variable outside of a branch.

      If you create a different variable before branching the rule (or even add a "Lookup Issue" action which has nothing to do with the variable), then create the variable inside the branch, you will be able to access the variable created inside the branch outside of it.

      This behavior should not be expected, since by design, variables should not be available outside a branch.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create an automation rule.
      2. Branch into another issue.
      3. Create a variable inside this branch.
      4. Try using the variable outside the branch.
      5. The value will be blank, which is expected by design
      6. Now, add an extra "Create Variable" action before the branch

      Expected Results

      A4J should not be able to access the data from variables created inside branches, which is expected by design.

      Actual Results

      A4J is able to access the data from variables created inside branches if another variable was created beforehand in the main execution path, which is not expected by design.

      Note

      Note that, if a "lookup Issue" action is added before the branch (instead of the extra "Create Variable" action), the result is the same: the Variable created within the branch will become available outside the branch.

        1. BranchiVariableNotWorking.png
          146 kB
          Armando Neto
        2. BranchVariableWorking.png
          141 kB
          Armando Neto

              Unassigned Unassigned
              abrancalhao@atlassian.com Armando Neto
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: