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
miikhy
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.
January 4, 2018

Hi,

You can simply query a customfield through the rest api using:

customfield_14729 ~ "AA: Analystics"

You can also create and save a filter in jira and use it to query the API (filter=10204 for instance where 10204 is the filter ID, in the url when browsing that filter in JIRA). 

Hope this helps :)

akhil raja January 8, 2018

Thanks for your answer but it won't works for me I found the one that suits best for me

cf[15729] in ("aa.ana","aa.ba")

Suggest an answer

Log in or Sign up to answer