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,
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
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}')
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.