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

Add support for else as a conditional logic smart value

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Smart-values
    • 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.

      According to the official Automation For Jira DC documentation, it is currently possible to check a condition using the if smart value, however, it is not possible to set an else to this if.

      Suggestion

      The if function could have a possibility to set a value if the condition is not matched - something like worksheets-functions allow such as:

      {{if(smartValue, "value if true", "value if false")}} 

      Example

      We need to filter some issues with a lookup, depending on the summary. If the summary is numeric I will check for a project and if it's not, I'll check a different project. Currently what can be done is something like the following:

      statusCategory = Done {{if(issue.Summary.isNumeric(), "and project = GT")}} 

      With the suggestion, we would be able to do something like:

      statusCategory = Done {{if(issue.Summary.isNumeric(), "and project = GT", "and project = TEST")}} 

      Workaround

      As a workaround, we need to use the if/else blocks.

              Unassigned Unassigned
              jrey Julien Rey
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: