Forums

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

I need to know the column name in jira for a custom field

shubham
Contributor
June 6, 2019

I am trying to form the URL for the REST API call to get all the tickets from a specific project which has severity(a custom field) as Minor.

 

As per the link - 

https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

I can get all the tickets for a specific project like - 

https://xyz.atlassian.net/rest/api/latest/search?jql=project=DT

When I am adding custom field, it is not filtering further -

https://xyz.atlassian.net/rest/api/latest/search?jql=project=DT&cf[12664]=Minor

 

Can someone tell what am I doing wrong here. 

1 answer

1 accepted

0 votes
Answer accepted
Fazila Ashraf
Community Champion
June 6, 2019
shubham
Contributor
June 7, 2019

Thankyou Fazila, it worked. Just a question though, why is that "%20and%20" and "&" does not work here?

Fazila Ashraf
Community Champion
June 9, 2019

@shubham  , because a jql search is expected here and  '&'  do not work for JQL. The proper logical operator is 'and'.

And i think you were using & as you got confused with the documentation where they asked to use & to get the field values as columns for those matching issues.

 

If the answer helps, you can choose to accept the answer to get the other users get to this quickly

Like shubham likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events