Hi,
I,m writing a groovy script for creating an issue "Target_Issue" in a project "Target_Project" based on an issue "Source_Issue" from another proyect "Source_Proyect".
There are some customfields that exists in "Source_Proyect" but not in "Target_Project".
My steps:
Because the groovy script must woks for different pairs <"Target_Project" ,"Source_Proyect"> before reset and populate fields in "Target_Issue" I need to test if the customfield to be reset/populate exists in this issue.
How can I do that?
Thanks in advance
Begoña
Hi,
This will list all custom fields in an Issue.
List<CustomField> allCustomFields = ComponentAccessor.getCustomFieldManager().getCustomFieldObjects(issue);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.