Hi,
Want to copy value updated in Single line text custom field (i,e Doc Version) to Multi line text custom field (i,e All Versions) using Groovy script?
//assuming this is a sigle line text field
def textFieldA = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Doc Version")
//assuming this is a Multi line text field
<code class="java plain">def textFieldB = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("All Versions")
issue.setCustomFieldValue(textFieldB, textFieldA) ==> is it appends values???
The "Doc Version" custom field value will get updated by issue assignee multiple times in my workflow @ different workflow transition steps.
I want to save all the version updated by assignee instead of overwriting it, I am trying to copy values into another Multi line text custom field i,e All Versions for Team's future reference.
Is this the right way or using one Multie line text custom field itself, we can try to preserve the previous values and get appended with latest version values using only one field itself? Please advice.