Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8071

Filter for due date and follow up date is not applied correctly in case of OR query

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.8.0-alpha2
    • Fix Version/s: 7.8.0, 7.8.0-alpha3
    • Component/s: engine
    • Labels:
      None

      Description

      Steps to reproduce:

      I have following user tasks:

      • tasks with due date set to today + 7 days
      • tasks without due date

      When I create a filter with ALL instruction and with one criteria "Due After today + 8 days" -> I get empty result (CORRECT)
      When I create a filter with ANY instruction and with the same single criteria -> I get the list of tasks for which due date is not null (WRONG)

      These are the JSON payloads for filter creation:

      {
        "id": "9703f13b-71fa-11e7-9974-0a0027000006",
        "name": "Or test",
        "resourceType": "Task",
        "query": {
          "dueAfter": "2017-08-05T10:00:00.000+0200"
        },
        "properties": {
          "priority": 0,
          "color": "#555555",
          "refresh": false,
          "showUndefinedVariable": false
        }
      }
      

      and

      {
        "id": "9703f13b-71fa-11e7-9974-0a0027000006",
        "name": "Or test",
        "resourceType": "Task",
        "query": {
          "orQueries": [
            {
              "dueAfter": "2017-08-05T10:00:00.000+0200"
            }
          ]
        },
        "properties": {
          "priority": 0,
          "color": "#555555",
          "refresh": false,
          "showUndefinedVariable": false
        }
      }
      

      Expected behavior:
      The filter must be applied correctly and both filters must return the same result (empty list in this case).

        Activity

        svetlana.dorokhova Svetlana Dorokhova created issue -
        svetlana.dorokhova Svetlana Dorokhova made changes -
        Field Original Value New Value
        Fix Version/s 7.8.0 [ 14894 ]
        tassilo.weidner Tassilo Weidner made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        tassilo.weidner Tassilo Weidner made changes -
        Summary Filter for due date is not applied correctly in case of OR query Filter for due date and follow up date is not applied correctly in case of OR query
        tassilo.weidner Tassilo Weidner made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Original Estimate 0 minutes [ 0 ]
        Remaining Estimate 0 minutes [ 0 ]
        Assignee Tassilo Weidner [ tassilo.weidner ] Svetlana Dorokhova [ svetlana.dorokhova ]
        Resolution Fixed [ 1 ]
        svetlana.dorokhova Svetlana Dorokhova made changes -
        Affects Version/s 7.8.0-alpha2 [ 14906 ]
        svetlana.dorokhova Svetlana Dorokhova made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        tassilo.weidner Tassilo Weidner made changes -
        Fix Version/s 7.8.0-alpha3 [ 14907 ]

          People

          • Assignee:
            svetlana.dorokhova Svetlana Dorokhova
            Reporter:
            svetlana.dorokhova Svetlana Dorokhova
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development