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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct, system fields do not have a numeric id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Guys , API call was useful to find System fields name and id
""" {Your JIRA base URL} /rest/api/2/field """
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how to set value for system field for example I want to set value Environment field using groovy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Most of the system fields can be set with issue.set<id of field>()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what will be filed id for Environment system filed, I want to change Environment value via groovy script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's environment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I run this script to update environment value in logs it's showing updated value when i open ticket still old value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your script is not applying the change you've put into the mutableissue object.
https://library.adaptavist.com/entity/update-the-value-of-a-custom-field-in-jira has some stuff about applying changes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.