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

Update multi-user picker field via REST API V3 does not support accountId

    XMLWordPrintable

Details

    Description

      Summary

      Editing a multi-user picker field for an issue via */rest/api/3/issue/

      {issueId}* does not work when using accountId.

      h3. Steps to Reproduce
      # Make a PUT request to */rest/api/3/issue/{issueId}

      * containing the following JSON body where custom field ID is for a multi-user picker type field:

      {
          "fields": {
              "customfield_10055": [
                  {
                      "accountId": "0f0000fff0ffff0f0000f00f"
                  }
              ]
          }
      }
      
      1. Get HTTP response code 204.
      2. Check the issue in the Jira UI.

      Expected Results

      The multi-user picker custom field has been updated to include the specified user.

      Actual Results

      No values have been added to the multi-user custom field.

      Notes

      accountId is working for single user picker custom field type.

      Workaround

      Currently the name parameter is supported, this would be the username of the user you wish to add like below:

      {
          "fields": {
              "customfield_10055": [
                  {
                      "name": "admin"
                  }
              ]
          }
      }
      

      Attachments

        Activity

          People

            bkelley@atlassian.com Ben Kelley
            nwolfgang Battlebeard (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: