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

Creating an EPIC via REST v3 returns Operation value must be an object error

XMLWordPrintable

      Summary

      When trying to create an epic via REST API v3, for example:

      curl --request POST \
        --url 'https://<instance>..atlassian.net/rest/api/3/issue' \
        --header 'Authorization: Bearer <access_token>' \
        --header 'Accept: application/json' \
        --header 'Content-Type: application/json' \
        --data '{
      

      It returns

      {
      "errorMessages": [],
      "errors":
      
      { "customfield_10010": "Operation value must be an object" }
      }
      

      customfield_10010 is Epic Name. Upon checking the datatype for Epic Name, it seems to be String but it's still throwing out the error.

      Environment

      • REST API v3

      Steps to Reproduce

      1. Create an EPIC via REST API v3

      Expected Results

      Epic is created

      Actual Results

      {
      "errorMessages": [],
      "errors":
      
      { "customfield_10010": "Operation value must be an object" }
      }
      

      Workaround

      Run in REST API v2. For example:

      curl --request POST \
        --url 'https://<instance>..atlassian.net/rest/api/2/issue' \
        --header 'Authorization: Bearer <access_token>' \
        --header 'Accept: application/json' \
        --header 'Content-Type: application/json' \
        --data '{
      

              Unassigned Unassigned
              mariffin Mohamed Hazwan Ariffin (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: