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

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

Fix Version is System Field and not a Custom Field.

 

What you want to do with the id anyway?

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.

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 vote

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

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

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

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published yesterday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

37 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot