Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to Modify the groovy script using Non Deprecated Method

Bhargav V
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2021

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

 

Warnings.png

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
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2021

There are a load of scripts that show you how to work with custom fields in the Library.  Have a look at https://library.adaptavist.com/search?page=1&products=jira&term=custom%20field for one that is close to what you want to do.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events