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.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kaushik Patel - 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.