Missed Team ’24? Catch up on announcements here.

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

How to clear a date field in JIRA using REST API?

Sam Xiao March 12, 2013

I have a custom field which is a date field, and I want to clear the date (make it empty or none) in this field using REST API. I tried this with "PUT", but doesn't seem to work. What's the correct JSON syntax for this?

{ "fields" : { "customfield_10750" : ""}}

Read an article here: https://developer.atlassian.com/display/JIRADEV/Updating+an+Issue+via+the+JIRA+REST+APIs

Try this and doesn't work either:

{ "update": { "fields": [{"remove": "customfield_10750" }] } }

Thanks.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
codelab expert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2013

A date value can not be "" (string), so you have to set to a special value. In most cases it is 1970-01-01 but here you have to set to null.

TAGS
AUG Leaders

Atlassian Community Events