Hello All,
I am looking for a way to concatenate the (Custom field Field Value Followed by Affect/s Version) as a Summary of the issue using Script runner Behavior. Although, part of the Script works but it adds '_null', so it seems not able to recognize the Affect/s Version values.
{code}
import com.atlassian.jira.component.ComponentAccessor
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
import static com.atlassian.jira.issue.IssueFieldConstants.SUMMARY
import static com.atlassian.jira.issue.IssueFieldConstants.AFFECTED_VERSIONS
@BaseScript FieldBehaviours fieldBehaviours
/**def AffectsVersion = getFieldByName("Affects Version/s").value**/
def AffectsVersion = getFieldByName(AFFECTED_VERSIONS).value
def Product = getFieldByName("Product Techno").value
def summary = getFieldById("summary")
summary.setFormValue("${Product}_${AffectsVersion}")
{code}
Please refer the attached screen shot.

Kindly let me know how can i fix this?