It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Auto-create sub-task copying parents field

Davor Fisher Community Leader May 31, 2016

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?

3 answers

1 accepted

1 vote
Answer accepted
Kristian Walker Community Leader Jun 03, 2016

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

Davor Fisher Community Leader Jun 03, 2016

Works exactly how i need it to work.

 

Thanks a lot!

0 votes
Steven Behnke Community Leader May 31, 2016

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.

0 votes
Davor Fisher Community Leader May 31, 2016

Epic Link & Fix Version are both being copied over to sub-task from parent!

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar alert! An IT Admin's Guide to Securing Collaboration at Scale

Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...

172 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you