We are using ScriptRunner to auto create sub-task once the parent issue (story) goes to a "to do" status. We are coming across an issue that two fields that are populated on the story before it's moved to that status are being copied to the sub-task. Is there any post function that would disable this?
Could a post function be added to the Additional issue actions within the Auto Create Sub-Task?
Hi Davor,
You can clear the fix versions field and the Epic Link field by specifying the following code below in the additional issue actions of the post function.
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.* Issue issue = issue as MutableIssue // Clear the fix versions field issue.fixVersions = null // Clear the epic link field checkLink = {link -> false};
I have attached the screenshot below to show how I have configured this.
image2016-6-3 11:43:30.png
I hope this helps.
Thanks
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Epic Link & Fix Version are both being copied over to sub-task from parent!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What fields are populated? I believe this is a "feature," so you could find the Built-in script and simply remove the ability for it to copy those fields to the sub-task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.