Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Script Runner - Create Subtask without estimate

Dave Scheet August 26, 2015

In the documentation it states that create subtask is very similiar to clone issue.   Is there a way we can create a subtask that doesnt pull fields down from the parent?  If an original estimate is set on the parent, when a subtask is created, that estimate is also applied to each autocreated subtask.   For example, we have a 200 hour project and when we get to a certain point in our flow, we have a subtask auto created to have the release notes created.  The project now has an overall estimate of 400 hours.  This really messes with reporting.  I tried clearing out the timetracking/original estimate fields upon creation, as well as just autosetting the original estimate to 0h.  nothing was able to clear it.

 

Suggestions?

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
RichardS January 11, 2016

Old question, but this appears to work

 

issue.setOriginalEstimate(null)

Magic Mike
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 25, 2018

works for me too. JIRA 7.2.6 and Script Runner 4.3.16

1 vote
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 26, 2015

You can override the copied value by adding some code to the "additional actions" section, in this case it should be:

issue.setEstimate(0)

We need to implement better control of copying fields. Makes sense for cloning issues, but less so for sub-tasks.

 

0 votes
Dave Scheet August 27, 2015

That did not work.  If it matters, we are on JIRA 6.3.8, with script running version of 3.1.4
(Also, I cant post new comments, because I don't have enough points yet)

 

Here is what I have in the script config.

image4.png

Here is the time tracking section with the subtasks included.

image1.pngHere is the time tracking section without the subtasks included.

image2.png

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events