how can i determine the field id for a standard JIRA value? For instance, Fix Versions?

Cindy Lucas August 31, 2016

This question is in reference to Atlassian Documentation: Configuring Built-in Fields

I know how to find the field ids for custom fields.  How do I determine what the field id is for a standard or system field?  For instance, Fix Versions?

4 answers

0 votes
Sten Sundelin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2016

You can call the API at (base_URL)/rest/api/2/field to get:

  • {
    • "id": "fixVersions",
    • "name": "Fix Version/s",
    • "custom": false,
    • "orderable": true,
    • "navigable": true,
    • "searchable": true,
    • "clauseNames":  [
      • "fixVersion"
      ],
    • "schema":  {
      • "type": "array",
      • "items": "version",
      • "system": "fixVersions"
      }
    },
  •  {
    • "id": "customfield_17301",
    • "name": "wcb_userid",

...etc

Sten Sundelin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2016

Documentation (for 6.4.11, your mileage will vary) here: https://docs.atlassian.com/jira/REST/6.4.11/#d2e829

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 31, 2016

The id is fixversion - the system fields all have names rather than ids.  Have a look at https://docs.atlassian.com/jira/latest/constant-values.html#com.atlassian.jira.issue.IssueFieldConstants.AFFECTED_VERSIONS

0 votes
Cindy Lucas August 31, 2016

Our testing team is building a utility that pulls data based on the field id.  They are requesting this. I do understand it's a system field and not a customized field.  I can determine the id for custom fields, but don't know where to locate it for system fields.

Prakhar Srivastav August 31, 2016

How are you pulling the data from JIRA using jql or from the database using sql?

For the sql case I have the sql ready , if you want I can share it.

Regards

Prakhar

0 votes
Prakhar Srivastav August 31, 2016

Fix Version is System Field and not a Custom Field.

 

What you want to do with the id anyway?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events