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

This widget could not be displayed.

Fix Version is System Field and not a Custom Field.

 

What you want to do with the id anyway?

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

102 views 1 2
Join discussion

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