It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to find system field id

Is there any way where I can find the IDs if the system fields and their values?


E.g. I want to have the ID of the Priority field and the Blocker field value.

2 answers

1 accepted

8 votes
Answer accepted

you can find all JIRA fields IDs (system and custom) through rest call: {Your JIRA base URL} /rest/api/2/field 

Thank you Moe, I will check this and send an update. Hopefully, this should work.

It doenot show any numeric value for system fields. ID will we displayed as characters.

Example: For System Field Name "Fix Version/s", "fixVersions" is the ID

[{"id":"fixVersions","name":"Fix Version/s","custom":false,"orderable"


Like SockBlocker likes this

Correct, system fields do not have a numeric id.

Thanks Guys , API call was useful to find System fields name and id 

 """       {Your JIRA base URL} /rest/api/2/field      """

Like Daniel Clawson likes this

how to set value for system field for example I want to set value Environment field using groovy

Most of the system fields can be set with issue.set<id of field>()

what will be filed id for Environment system filed, I want to change Environment value via groovy script

It's environment.

JiraIssue.JPGscript.pngI run this script to update environment value in logs it's showing updated value when i open ticket still old value

Your script is not applying the change you've put into the mutableissue object. has some stuff about applying changes

Suggest an answer

Log in or Sign up to answer

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you