I'm trying to access parent issue fields in the "Create a Sub-Task" Builtin Listener.
I've tried the following:
But all I get is a null value.
My use case is that i want to copy the description and other values from the parent to the subtask when creating a new sub-task.
Does somebody have an idea how to access the parent values?
I think the problem is that the subtask is still not created when the script is executed, so it still does not have parent issue. I also did not find the parrent issue anywhere in the context of the script.
As an alternative you might use the "Set Field Value from Parent" post function from JIRA Misc Workflow Extensions plugin if you have it installed, so if you put this postfunction after create subtask postfinction it will set all the fields
Another alternative is to modify the built-in script to include the parent issue in the context of the script.
Something like the following should do the job (before line 116 in CreateSubTask.groovy)
Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...
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