cloud scriptrunner clone issue post function to include original estimate

Todd Winton
Contributor
October 12, 2023

The clone issue post function does not include cloning the original estimate.  What would be the best way to clone the original estimate?

2 answers

0 votes
Bobby Bailey
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.
October 26, 2023

Hi @Todd Winton , 

With the Clone issue Post Function, you can execute additional code to modify values on the issue being created. 

In this script, you can access the information about the issue, and use the issue key to get the changelog (/rest/api/2/issue/{issueIdOrKey}/changelog), and then go through this to get the original estimate value. 

You can then update the value of the field using issueInput, an example of using this to update the summary can be seen here: 

communityScreenshot1.png

 

Does this help?

Kind regards,

Bobby

0 votes
Luka Hummel - codefortynine
Atlassian Partner
October 16, 2023

Hi @Todd Winton

You could try our Deep Clone for Jira app. Deep Clone can clone the Original Estimate field value and also supports adding a Deep Clone as a post function.deep-clone-jira_post-function

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events