@Riyaz_CG and welcome to the Atlassian Developer community!
I don’t have the full answer to your question, but let me share a few more details.
Many devs found this post by Beata useful to retrieve the fields available in the UI: Get all fields and choices for a single project (classic or nextgen) - #3 by BeataSzturemska
Regarding the issue types field specifically, once I’ve retrieved the field id using the /rest/api/3/field
endpoint, I’ve requested the /rest/api/3/issuetype
one to retrieve the details of all the available issue types. This will not work with every field but it’s a start.
The output will look something like this:
"self": "https://<yoursite>.atlassian.net/rest/api/3/issuetype/10004",
"id": "10004",
"description": "A problem or error.",
"iconUrl": "https://<yoursite>.atlassian.net/secure/viewavatar?size=medium&avatarId=10303&avatarType=issuetype",
"name": "Bug",
"untranslatedName": "Bug",
"subtask": false,
"avatarId": 10303,
"hierarchyLevel": 0
},
{
"self": "https://<yoursite>.atlassian.net/rest/api/3/issuetype/10002",
"id": "10002",
"description": "A small, distinct piece of work.",
"iconUrl": "https://<yoursite>.atlassian.net/secure/viewavatar?size=medium&avatarId=10318&avatarType=issuetype",
"name": "Task",
"untranslatedName": "Task",
"subtask": false,
"avatarId": 10318,
"hierarchyLevel": 0
}
Let us know how you go,
Caterina