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?
Community moderators have prevented the ability to post new answers.
Old question, but this appears to work
issue.setOriginalEstimate(null)
works for me too. JIRA 7.2.6 and Script Runner 4.3.16
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.