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

This widget could not be displayed.

@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": []
}

This widget could not be displayed.

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 Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

155 views 1 3
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