Getting Custom fields names from REST API

priyanka jaiswal September 21, 2023

While making the below API call, I am still not able to get names of custom fields in the returned json. I read adding expand=names would do the trick but I do not see any change in results. Please help

https://mycompany.atlassian.net/rest/api/2/search?jql=project=CS&expand=names

1 answer

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 21, 2023

Hi

Welcome to the community

Can you show us what result do you have. I tried the query below and this is working fine.

rest/api/2/search?jql=project=AAA&expand=names

 

comm.png

priyanka jaiswal September 21, 2023

Ah ok! I was expecting the fields to have their names instead. Is there no way to do that?

Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 21, 2023

You don't want to have the customfield id and the name ? You just need the name ?

I'm afraid that you will need to do it with a script to be able to extract only the name

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events