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

Having issues with a specific customFieldManager method call in Scriptrunner, ".findByName()" Edited

I have limited experience with programming, usually just enough to cannibalize scripts that are similar to what I'm working on to get what I need done. I've been trying to create a scripted field to display the value of custom fields from subtasks in the parent task. Using this page, I grabbed the import statements at the top and the line

def customField = ComponentAccessor.customFieldManager.getCustomFieldObjects(firstSubtask).findByName(customFieldName)

I've been doing my best to learn as I go, and for the most part hitting Ctrl + J to bring up the javadoc has been really helpful. However, I can't seem to find anything anywhere, be it google, here, or the adaptavist library, about "findByName()". I'm not quite sure how it works, and would really appreciate if someone could give me more information about where it comes from.

1 answer

It should be an additional feature by ScriptRunner. Maybe something like this?

Suggest an answer

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

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

874 views 14 20
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