# Send notification to users in a user picker field

**URL:** <https://community.developer.atlassian.com/t/send-notification-to-users-in-a-user-picker-field/30046>\
**Category:** JSM Cloud\
**Tags:** jira-service-management\
**Created:** [June 24, 2019, 12:29pm UTC](https://community.developer.atlassian.com/t/send-notification-to-users-in-a-user-picker-field/30046 "2019-06-24T12:29:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.hamamjyan](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@m.hamamjyan](https://community.developer.atlassian.com/u/m.hamamjyan)\
**Post date:** [June 24, 2019, 12:29pm UTC](https://community.developer.atlassian.com/t/send-notification-to-users-in-a-user-picker-field/30046/1 "2019-06-24T12:29:29Z")

</div>

Hello,

I need to send email to users who are in a multiply user picker filed. I used this API `POST /rest/api/2/issue/{issueIdOrKey}/notify`  
but it brings me an error attached ((Approvers is several user picker field in JIRA, not in AD)

 ![API2](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/7/1/710a7597845b7d34700f9becedf1d512837d92be.jpeg)

Also how can I get the {issueIdOrKey} of an issue type? I need to send notifications to a specific issue type requests automatically, depended on a date in the request. In case I am going to the wrong direction, please help to find the solution.

---

<div class="post-metadata">

**Author:** ![ianRagudo](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ianragudo/32/44527_2.png) [@ianRagudo](https://community.developer.atlassian.com/u/ianRagudo)\
**Post date:** [June 25, 2019, 3:00am UTC](https://community.developer.atlassian.com/t/send-notification-to-users-in-a-user-picker-field/30046/2 "2019-06-25T03:00:05Z")

</div>

Hello @m.hamamjyan,

If I understood it correctly, `Approvers` is a user picker and not an actual group found in _Administration \> User Management \> Groups_, if so, this is the expected result. What you can do is to get the user/s in your `Approvers` user picker and add it in the request body like

```auto
  "to": {
    "reporter": true,
    "assignee": false,
    "users": [
      {
        "name": "userOne"
      }
    ]
  }

```

In your second scenario

> [@m.hamamjyan](#):
>
> Also how can I get the {issueIdOrKey} of an issue type?

One way you can do this is by calling [Search for issues using JQL](https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-rest-api-3-search-get) REST API where the `jql` is something like `issuetype = myIssueType` and it will return you all the issues of the said issue type. If you need issues created on specific dates, you can add something like `created >= 2019-06-24 AND created <= 2019-06-26`.

Hope this helps.  
Ian
