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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

cloud scriptrunner clone issue post function to include original estimate

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
Robert 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.
Oct 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
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.
Oct 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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events