Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Get a value from custom_field by ObjectId

Marcus Santos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 8, 2024

Hello everyone,

I'm trying to retrieve the value of a custom field via the REST API, but the API always returns the following information:

"customfield_10922": [
    {
        "workspaceId": "field-workspace-id-hash",
        "id": "field-id-hash",
        "objectId": "field-id"
    }
]

I would like to get the actual value for this field, but I can't seem to do so using the Jira REST API. Can anyone help me with this?

1 answer

1 accepted

2 votes
Answer accepted
Marcus Santos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 8, 2024

Hello everyone, 

I was able to get the custom_field value by adding the following parameter to the request:

"expand": "names,customfield_10922.cmdb.label"

The API response returned the following information:

"objectAttributeValues": [
    {
        "value": "Todos",
        "displayValue": "Todos",
        "searchValue": "Todos"
    }
]

I leave this information here in case anyone is experiencing the same problem.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events