In JIRA cloud using ScriptRunner I'm trying to get the parent summary so I can do a little string manipulation to add my own prefix to the sub-task summery generated via a ScriptRunner postfunction.
Anyone know how to get the parent field values and update the subtask using Scriptrunner?
I gather at the sub task creation "issue" realy means the parent? So I figured I could just trace the property value like this in the Additional code block.
import org.apache.log4j.Logger
logger.info("Parent task summary? " + issue.fields.summary); //doesn't work
logger.info("Subtask summary? " + subtask.fields.summary); //doesn't work either
Just trying to log it kills the function to generate the sub.