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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

35 views 0 4
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