Need to Modify the groovy script using Non Deprecated Method

Bhargav V 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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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