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.
How I do this?
I am a little bit layman in this subject
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.