how to add customfields in rest apis

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 Community Champion Dec 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
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

454 views 7 5
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