Rest orQueries

Hello,
I want to select tasks which are assigned to user1 or user2
I tried to send query like below, but it didn’t work

{
        "assignee": "user1",
        "orQueries":[
            {
                "assignee": "user2",
            }
        ]
}

How to create right query?

Hi ramzes,

unfortunately it is not possible to use the same filter criterion multiple times. Please also see the documentation about OR in task queries. The following proposal is a bit hacky but it should do what you want to achieve:

{
        "orQueries":[
            {
                "assignee": "user2",
                "assigneeLike": "user1"
            }
        ]
}

Cheers,
Tassilo

1 Like