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

How can I update a field of 'any' type using REST api ?

Ashish Tyagi May 30, 2016

I have a custom field, whose schema says that it has a type 'any'. When I try to update it using REST api, there is no error but the change is not reflected. What is the correct way to update the fields with 'any' type ?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 30, 2016

There's no "any" type field, so I don't know where you are getting that from.

Could you look at the field in the UI and see what type it really is?  (And maybe show us  the "any" response you say you're getting from REST?)

Ashish Tyagi May 30, 2016

This is what I am getting for  a custom field : 

"customfield_10700": {

"required": false,
"schema": {
"type": "any",
"custom": "com.pyxis.greenhopper.jira:gh-epic-link",
"customId": 10700
},
"name": "Epic Link",
"hasDefaultValue": false,
"operations": [
"set"
]
}

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 30, 2016

It's the "custom" that tells you what the field type is.

TAGS
AUG Leaders

Atlassian Community Events