Open link in a new tab

Content

Expand project menu

Edit custom field List via API

Hi,

I'm trying to edit the content of a custom field via API. The custom field is a List, so I try to change it to one of the possible values of the list.

/api/v3/work_packages/13511?notify=false

body:

{   
"lockVersion": 2,
"customField30": {
           "href": "/api/v3/string_objects?value=LOGISTICS"
       }        
}

As a result I get the same custom field value.

When a custom field is just text, I'm able to patch it.

Message actions

Hi All,

any suggestion?

Message actions

Hi!

Is there solution for this requirement?

Zsombor

Message actions

From what I can see you need to pass the value as the following:

[href] => '/api/v3/custom_options/XXX' where XXX is replaced by the ID of the list item in your list

Message actions

I've tried this on work packages, and it's working.

But not working for projects!
I've lit typed custom fields on projects.

Any idea?