Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Need to Modify the groovy script using Non Deprecated Method

Bhargav V I'm New Here Dec 14, 2021

getCustomFieldObjectByName method is deprecated, Need to modify the scripts to use getCustomFieldObjectsByName method.



After using getCustomFieldObjectsByName(String) it removes warning but it throws error in other line which is shown below


Error Received.png

Help me with fixing the warnings without any errors?

1 answer

1 accepted

0 votes
Answer accepted

There are a load of scripts that show you how to work with custom fields in the Library.  Have a look at for one that is close to what you want to do.

Suggest an answer

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

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

801 views 5 13
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