Check if the customfield value is not null

Hi,

I want to exclude the objects whose customfield value is null in the REST API. Find the below details:

https://abc.jira.com/rest/api/2/search?jql=project=CORE+and+fixVersion=4.2.11+and+status=Open&customfield_10090=null


{
	"total": 1,
	"issues": [
	{
		"id": "552524",
		"self": "https://abc.jira.com/rest/api/2/issue/552524",
		"key": "CORE-91240",
		"fields": {
			"customfield_10090": null
		}
	}
	]
}


Thank you for the help.

 

2 answers

@Niclas Sandström [Riada] Thanks for your help. I tried that, but I am getting the below error:

{
"errorMessages": [
"Field 'customfield_10090' does not exist or you do not have permission to view it."
],
"warningMessages": []
}

Try

https://abc.jira.com/rest/api/2/search?jql=project=CORE+and+fixVersion=4.2.11+and+status=Open+and+customfield_10090+is+not+empty

Br, Niclas

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in Jira Service Desk

Looking for anyone who has switched from Zendesk to Jira Service Desk

Hi Community! The Jira Service Desk marketing team is looking for customers who have successfully switched from Zendesk to Jira Service Desk!   We’d love to hear your thoughts on the pros and ...

47 views 2 2
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