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 vote

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 :)

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,331 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot