Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I get custom fields labels and respective custom fields IDs in list

I want a list of all custom fields and their respective IDs configured in my JIRA.

I know how to get ID of a custom field by hovering cursor over the custom  field label, but I need the list of all such custom fields with their IDs.

Is there any query I can use? I have scriptRunner available, but don't know how to use the query for it.

Is there a way I can have this information by Export?

Thanks,

Kaushik.

3 answers

1 accepted

If you just want this information in text (json), you can request this url:

http://yourbaseurl/rest/api/2/field

This will return all fields information.

 

You can also programmatically query this information using Jira API. Run this script in ScriptRunner > Console:

import com.atlassian.jira.component.ComponentAccessor

ComponentAccessor.getCustomFieldManager().getCustomFieldObjects().collect {
it.name + ":" + it.id
}

 

I hope this helps!

Yes, this helped. I ran in ScriptRunner > Console

Thank you.

1 vote
John Funk Community Leader Apr 21, 2021

Hi @Kaushik  - You can probably do that using something like Postman and access it through the API. But that's not my area or ability. Maybe someone else can provide more details or you can search the API. 

Hi @kaushik

As @John Funk  mentioned the best way is to use postman.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

90 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you