Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-70234

As an admin, I'd like to set a date comparison condition in the workflow as a JQL search

    XMLWordPrintable

Details

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

      Problem Definition

      At this moment, when creating a date comparison condition in a workflow, admins can only use a fixed date.

      When we need a condition where the transition is only available if the "Date Picker" custom field is set to less than 6 months from now in the future. Examples:

      • Today is 09-12-2018. If the "Date Picker" is set to 11-12-2018, then the transition is available;
      • Today is 09-12-2018. If the "Date Picker" is set to 04-12-2019, then the transition is unavailable;

      This is not possible using conditions, right now.

      Suggested Solution

      Add the ability for admins to create a date comparison condition based on a JQL search.

      Why this is important

      This should enhance greatly the user experience.

      Workaround 

      (Please note: At this moment, this workaround can be done only by Jira admins!)
      We can add a Date Compare Validator, which has broader options for date comparisons. To achieve this:

      1. Type the g key twice on your keyboard (gg) or, as alternative, your period key ( . ), then Projects;
      2. Select the relevant project;
      3. Click workflows;
      4. Find the relevant workflow for the relevant issue type, then click the Pencil icon on your right corner;
      5. Select the relevant transition, then click Validators;
      6. Click Add Validator, select Date Compare Validator, then click Add;
      7. Configure the validator as needed, then click Add;
        • Perform steps 5 to 7 on all relevant transitions!
      8. Don't forget to publish the workflow draft!

      The only drawback is that the transition will always be available (as we are not working with conditions), but Jira will throw an error with an understandable message on it.

      Attachments

        1. Future date.png
          Future date.png
          104 kB
        2. Validator.png
          Validator.png
          100 kB
        3. Validator 2.png
          Validator 2.png
          30 kB
        4. Validator 3b.png
          Validator 3b.png
          135 kB
        5. Value Field Condition.png
          Value Field Condition.png
          101 kB

        Activity

          People

            Unassigned Unassigned
            rgebhardt@atlassian.com Ricardo Gebhardt (Inactive)
            Votes:
            21 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: