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

Date/time functions in automation rule don't work with dynamic mathematical functions

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 7.3.5
    • Smart-values
    • 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

      {{issue.created.plusHours(issue.custom_text_field.multiply(2))}}

      works in Cloud, but no server equivalent function available.

      Summary of our findings:

      • The multiply() doesn't exist in server release and we use * for multiplication – Maths
      • The following expression works for multiplying the value from a custom field :
        {{#=}}{{issue.custom_text_field}} *2 {{/}}
      • Date/Time functions mainly works with static value – Date and Time functions
      • The following expression works for adding two hours to the issue creation date/time:
        {{issue.created.plusHours(2)}}
      • However, we can't seem to combine both the functions together e.g:
        {{issue.created.plusHours({{#=}}{{issue.custom_text_field}} *2{{/}})}}

        :

      Steps to Reproduce

      1. Create new custom text field and associated to all relevant screens
      2. Create new automation rule that multiply the number in custom text field and add to the issue created date/time
      3. Create a new issue with some number value in custom text field
      4. Check the issue created date/time

      Expected Results

      Issue created date/time should be updated accordingly

      Actual Results

      The date/time functions don't work with dynamic mathematical functions

      Workaround

      N/A

      Attachments

        1. rule.png
          125 kB
          KellyW

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwong2@atlassian.com KellyW (Inactive)
              Votes:
              10 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: