with JIRA REST Java Client Library, how to update issues by deleting values of fields Edited

I use JIRA REST Java Client Library 4.0.0.

I want to update issues by deleting values of duedate and the following types of customfields with it.
・select list

Could you show me how to update issues by deleting values of these with JIRA REST Java Client Library?

The following is my source code. It can't update issues by deleting values.

JiraRestClientFactory jrcf = new AsynchronousJiraRestClientFactory();
JiraRestClient jrc = jrcf.createWithBasicHttpAuthentication(new URI([JIRAURL]), [USERID], [PASSWORD]);
IssueRestClient irc = jrc.getIssueClient();

Map<String, FieldInput> valMap = new HashMap<String, FieldInput>();
valMap.put("duedate", new FieldInput("duedate", null));
valMap.put("customfield_[CUSTOMFIELDID]", new FieldInput("customfield_[CUSTOMFIELDID]", null));

IssueInput ii = new IssueInput(valMap);
irc.updateIssue("[ISSUEKEY]", ii).claim();

1 answer

0 votes

Hi Runa,

There is a Suggestion titled Add, edit, or delete custom fields in REST API that provides a third party add-on which may be of use:

It would be nice to be able to deal with custom fields using Jira REST API.

At the moment, it's possible to get some info by retrieving editmeta :


But you cannot add, edit, or delete custom fields via JIRA REST API (as you can in the admin section).


The third party plugin Jira Customfield Editor provides REST endpoints for the CRUD operations on custom fields.

Please take a look at the Suggestion and vote on JRASERVER-28539 or JRACLOUD-28539 depending on whether you are using Server or Cloud to provide impact and be notified of any changes to the ticket.



Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,815 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot