Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Getting Custom fields names from REST API

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.
Sep 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

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.
Sep 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