# Task search via REST API

**URL:** <https://forum.camunda.io/t/task-search-via-rest-api/48615>\
**Category:** Camunda 7 Topics\
**Tags:** tasklist\
**Created:** [November 3, 2023, 3:21pm UTC](https://forum.camunda.io/t/task-search-via-rest-api/48615 "2023-11-03T15:21:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pertsh.galstyan](https://forum.camunda.io/user_avatar/forum.camunda.io/pertsh.galstyan/32/27321_2.png) [@pertsh.galstyan](https://forum.camunda.io/u/pertsh.galstyan)\
**Post date:** [November 3, 2023, 3:21pm UTC](https://forum.camunda.io/t/task-search-via-rest-api/48615/1 "2023-11-03T15:21:24Z")

</div>

how to get task list of task which have name =“x” or name=“y”  
I know that i can do smth like .

```auto
{
    "variables": [
      {
        "name": "variableName",
        "operator": "eq",
        "value": "variableValue"
      }
    ]
  }

```

but how achive OR

---

<div class="post-metadata">

**Author:** ![rohwerj](https://forum.camunda.io/user_avatar/forum.camunda.io/rohwerj/32/33352_2.png) [@rohwerj](https://forum.camunda.io/u/rohwerj)\
**Post date:** [November 3, 2023, 8:56pm UTC](https://forum.camunda.io/t/task-search-via-rest-api/48615/2 "2023-11-03T20:56:09Z")

</div>

Hi @pertsh.galstyan  
You cannot do an OR query via the REST api as far as I know.  
So you would have to do two queries and join the results.

---

<div class="post-metadata">

**Author:** ![WilliamR.Alves](https://forum.camunda.io/user_avatar/forum.camunda.io/williamr.alves/32/27412_2.png) [@WilliamR.Alves](https://forum.camunda.io/u/WilliamR.Alves)\
**Post date:** [November 4, 2023, 5:46pm UTC](https://forum.camunda.io/t/task-search-via-rest-api/48615/3 "2023-11-04T17:46:20Z")

</div>

Hello my friend!

As informed by our champion @rohwerj , this possibility does not exist in a single consultation. Below I leave the part of the doc where you can check which operators can be used.

![image](https://forum.camunda.io/uploads/default/original/3X/7/4/74086cdff12924226a9eb881a882f20e36eaa047.png)

**William Robert Alves**

---

<div class="post-metadata">

**Author:** ![y-petrov](https://forum.camunda.io/user_avatar/forum.camunda.io/y-petrov/32/23018_2.png) [@y-petrov](https://forum.camunda.io/u/y-petrov)\
**Post date:** [November 6, 2023, 2:26am UTC](https://forum.camunda.io/t/task-search-via-rest-api/48615/4 "2023-11-06T02:26:31Z")

</div>

Don’t hesitate to extend out-of-box camunda rest api with you own endpoints specific to your particular application. And inside your endpoint you can do anything you need with the camunda database.

---

<div class="post-metadata">

**Author:** ![pertsh.galstyan](https://forum.camunda.io/user_avatar/forum.camunda.io/pertsh.galstyan/32/27321_2.png) [@pertsh.galstyan](https://forum.camunda.io/u/pertsh.galstyan)\
**Post date:** [November 6, 2023, 2:45pm UTC](https://forum.camunda.io/t/task-search-via-rest-api/48615/5 "2023-11-06T14:45:50Z")

</div>

Thank you for your response

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [November 13, 2023, 2:46pm UTC](https://forum.camunda.io/t/task-search-via-rest-api/48615/6 "2023-11-13T14:46:39Z")

</div>

Closed on November 13, 2023, 2:46pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
