You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i'm still a bit newbie in this. Your explanation make sense but how you you put result into the target field ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The code in https://library.adaptavist.com/entity/update-the-value-of-a-custom-field-using-a-listener shows us how to write custom field data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.