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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,459,871
Community Members
 
Community Events
176
Community Groups

Copy scripted field value to another custom field

Edited

Hi

I have a scripted field thar shows a percentual evolution of an epic according his child issues is done.

I need to copy the value of this field to another text custom field .

I try to use the script runner function "copy field values" but I can't find the custon scripted field to put on "source field" selection


Is there any way to make this run?

 

 

I saw this article https://community.atlassian.com/t5/Jira-Core-Server-questions/Copy-Custom-field-value-from-one-field-to-another/qaq-p/73207

 

 

but apparently there is an error at line 32

CR.JPG

1 answer

1 accepted

0 votes
Answer accepted

There is a problem with Scripted fields in that you can't rely on their calculated content being available or correct in other scripts and automations.  That's why it won't let you select the scripted field as a source.

You'll need to replicate the work the scripted field is doing in your "copy from" process, not just copy it.

How I do this?

 

I am a little bit layman in this subject

You will need to write a script to do this.

You can copy the script that provides your scripted field though, replacing the "return <result>" line with code that puts the result in the target field for your "copy"

i'm still a bit newbie in this. Your explanation make sense but how you you put result into the target field ?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events