How To Find Custom Field Id In Jira

Frequently, while using Atlassian’s JIRA, it becomes necessary to engage with customized fields that have been integrated into our projects. In order to accomplish this, it is imperative to know how to identify these customized fields. This article will provide you with a step-by-step guide on how to find the identification number of a custom field in JIRA.

What is a Custom Field ID?

In JIRA, every field, whether it’s a system field (like “Summary” or “Description”) or a custom field, is identified by a unique ID. The ID of a custom field is important when you’re scripting or developing add-ons for JIRA, as it helps you accurately refer to the exact field you want to interact with.

Finding the Custom Field ID

Here’s a step-by-step process on how to find the ID of a custom field in JIRA:

Step 1: Log in to JIRA

To start, the first thing you need to do is log in to your JIRA instance as an administrator.

Step 2: Navigate to Custom Fields

Once logged in, click on the “Cog Icon” in the top right corner of your screen, then select “Issues”. Under the “Fields” section, choose “Custom Fields”.

Step 3: Locate the Custom Field

In the “Custom Fields” page, you’ll see a list of all the custom fields currently in your JIRA instance. Look for the custom field you’re interested in (you can use the search bar for this).

Step 4: Identify the Custom Field ID

Once you’ve located the custom field, hover your mouse over the “Edit” link at the right end of the field’s row. You will see a URL preview at the bottom of your browser (or in a tooltip, depending on your browser settings). The custom field ID is the number at the end of this URL.

Alternative: Use JIRA’s REST API

If you’re comfortable with programming, or if you want to automate this task, you can also find the custom field ID by querying JIRA’s REST API. Here’s an example using curl and jq:

curl -u username:password -X GET -H "Content-Type: application/json" https://your-jira-instance/rest/api/2/field | jq '.[] | select(.custom==true) | .id + " " + .name'

This script will return a list of all the custom fields, along with their IDs and names.

Conclusion

Being able to identify and use custom field IDs in JIRA is a very useful skill, especially when it comes to scripting and development. We hope that this guide has been helpful in teaching you how to find a custom field ID in JIRA. If you have any further questions, feel free to leave a comment below!