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

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

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Actions
    • 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

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              7dd7130ee7d0 Franklin Ayres
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: