Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 do i get all customFieldOption objects?

I'm having an issue getting all customFieldOption objects.  How can i get them? I'd like to map the custom field option name with it's id.  Thoughts? 

1 answer

0 votes
Moses Thomas Community Leader Apr 29, 2020

@Tavares Forby 

I  hope i understand what  you  are asking.

If you have the Script runner plugin you can go this way .

Now to get the custom field object, press F12 then click on inspect in the Firefox developer view, drag the cursor to the field on create screen,  and then you will see "customfield_id" You can also get the by going to custom field on the JIRA admin panel and edit the field then you will see the id, so you will now have "customfield_id"

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.issue.fields.CustomField

CustomField cf86900 = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_86900")
String cf86900Value = issue.getCustomFieldValue(cf86900) 


Kind regards,


import jira.component.ComponentAccessor
import jira.issue.CustomFieldManager
import jira.issue.fields.CustomField


doesn't exist.  I do not have access to CustomFieldManager.  I've tried various methods. 

Moses Thomas Community Leader Apr 30, 2020

Do you have the script  runner plugin for Jira, you need this plugin.

yes i do need this plugin.  How do i get the plug in?

this is for Python

Moses Thomas Community Leader Apr 30, 2020

You need to install it depends where exactly you want to place your script for eg. Postfuntion script on work flow transition  e.t.c you can download here 

Script runner plugin  

Kind regards,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in New to Jira

Check out the ✨NEW✨ Group for Jira Cloud Admins

Hello Community members!  Wanted to give you the heads up about a NEW Community Group for Jira Cloud Admins.  This is a group where you can ask questions, access resources, and rub elb...

88 views 0 6
Read article

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