Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

setting project picker value to 'None' using Jira Rest API


I want to update the 'project picker' value to None using Jira REST API for my script.

Below is the Json body that I am using to update project picker field value to None:

     "fields": {"customfield_12001":{}
This gives 400 error code. I am passing empty body. In my case, say customfield_12001 is Project picker field id.
Note: The above code - passing empty body to set value to None - works perfectly fine for user picker, version picker and all other Jira picker fields.

1 answer

1 accepted

0 votes
Answer accepted
Vishwas Community Leader Dec 28, 2021

Hi @dheeraj chittari 

Welcome to Atlassian Community !!

I am also still new to Jira API. but just a suggestion. Did you try providing null value like this ?

"customfield_10200": null

 Lets also take inputs from other Community Experts.




Thank you @Vishwas 

Above suggestion has worked.

In the process I found that it can also be solved using below piece of code



Just wondering, why "customfield_12001":{} (empty json body) does not work in case of project picker. 




Like Vishwas likes this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events