I want to populate a Scripted Field with the count of a Free Text Field.
What should the last line of this script be?
import com.atlassian.jira.ComponentManager; import com.atlassian.jira.issue.customfields.manager.OptionsManager; def componentManager = ComponentManager.instance; def customFieldManager = componentManager.getCustomFieldManager(); def RelatedCasesField = customFieldManager.getCustomFieldObjectByName("Related Cases"); // return (RelatedCasesField.count());
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot