how to add customfields in rest apis

akhil raja December 26, 2017

I need to retrieve data related to particular substreams, here substream is my customfield. i am unable to add this customfield in rest query i tried in following ways

cf[14729]=AA: Analytics but it is raising error 

 "Error in the JQL Query: Expecting either 'OR' or 'AND' but got 'Analytics' "

then i tried in this way

customfield_14729.value = "AA: Analytics " but it is raising error

Field 'customfield_14729.value' does not exist or you do not have permission to view it

 

could someone help me to recover this

 

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2017

Hello,

Your rest expects JQL query from you. 

customfield_14729.value = "AA: Analytics " is not a valid JQL query.

Open issue navigator and write a valid JQL query. In your case you need to find the name of the customfield_14729 and write something like this

"the name of your custom field" = "AA: Analytics "

Suggest an answer

Log in or Sign up to answer