Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

jql - unable to extract description field

Omair Ahmed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2019

Hello, Given the query parameters below, I want to get the description field. However, the query is not returning anything. I don't understand why.

 

$ curl -D- -u username:password -o issues.json -X GET "https://jira.company.com/rest/api/2/search?jql=project=MyProject+AND+issuetype=Story+AND+Status=Open+AND+description is not EMPTY"

1 answer

0 votes
Omair Ahmed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2019

After some experimentation, I came up with this:

curl -D- -u username:password -o issues.json -X GET "https://jira.company/rest/api/2/search?jql=project=MyProject+AND+issuetype=Story+AND+Status=Open+AND+Description:~'TRUE'"

 

which produces the output, which is confusing because the field exists and I can read it just fine via the JIRA web interface.

 

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events