Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Find the Field ID for a Custom Field ("Remediation Plan") in Jira?

Abhinav Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2024

Hello Jira Community,

I am currently working on a script to automate the creation of release notes by pulling data from Jira. One of the critical pieces of information I need is the "" field, which seems to be a custom field in our Jira instance.

Despite downloading the JSON format of a Jira ticket's fields, I have been unable to locate the ID for this "Remediation Plan" field. Unfortunately, I do not have administrative rights to directly inspect the field configurations.

Could anyone guide me on how to find the field ID for this custom field? Is there an API endpoint or a method that can be used to identify the field ID for custom fields without needing administrative access?

Any help or pointers would be greatly appreciated.

Thank you!

Best regards,

Screenshot 2024-06-13 174903.jpg

2 answers

0 votes
Hubert Kut
Community Champion
December 29, 2024

Hi @Abhinav Kumar

We have developed together with Atlassian a new app. Doctor for Jira. Free version shows all id of all objects in Jira including custom fields.

Best

Hubert

0 votes
_A9_ William Kennedy
Contributor
June 13, 2024

I like to keep a table on hand. This requires a bit of python:

import requests
import pandas as pd

# Replace these variables with your Jira instance URL and your API token
jira_instance = 'https://yoursite.atlassian.net'
api_token = 'YOURAPIKEY'
email = 'user@example.com'

# API endpoint for fetching all fields
api_url = f'{jira_instance}/rest/api/2/field'

# Making the GET request to the Jira API
response = requests.get(api_url, auth=(email, api_token))

# Check if the request was successful
if response.status_code == 200:
fields = response.json()

# Extracting custom fields
custom_fields = [{'Field ID': field['id'], 'Field Name': field['name']} for field in fields if field['custom']]

# Creating a DataFrame
df = pd.DataFrame(custom_fields)

# Display the DataFrame
print(df)

# Save the DataFrame to a CSV file
df.to_csv('jira_custom_fields.csv', index=False)
else:
print(f'Failed to fetch fields: {response.status_code} - {response.text}')

 




 Screenshot 2024-06-13 at 9.29.47 PM.png

Suggest an answer

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

Atlassian Community Events