Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can you copy from a scripted field to a custom field?

Alexander Rosado
Contributor
March 9, 2022

We need to track history of changes to a scripted field. We would like to copy it to a custom field so that it is logged in the system. Is this possible or is there limitation? 

1 answer

1 accepted

0 votes
Answer accepted
Sachin Dhamale
Community Champion
March 9, 2022

@Alexander Rosado ,

 

Do you want to copy the value of scripted field to other custom field?

Or Do you want track/copy the history of changes of scripted field to other custom field?

What is your user cases?

Alexander Rosado
Contributor
March 9, 2022

We would like to copy the value of scripted field to another custom field.  It is more of a database issue.  They want to be able to track when the change is applied. Scripted fields don't seem to record when they change. 

Sachin Dhamale
Community Champion
March 9, 2022

@Alexander Rosado ,

You need to see when the scripted field populate the values means while issue creation the scripted field populate the value then at the issue creation you can use the copy field postfunction to copy value from scripted field to other custom field.

In same you can add this postfucntion on any other relavent transition            

Alexander Rosado
Contributor
March 9, 2022

The scripted fields traverses linked issues, goes to the parent of each linked issue, and then grabs a field of each issue into a list. They would want it checked consistently for changes rather than on a transition. I believe the options are between an adaptivist listener or behavior. We cannot find any guidance on how to implement this, and our blind trials have failed. At the moment we are scrapping the json to get the values but would rather implement it within the software if possible. 

Sachin Dhamale
Community Champion
March 9, 2022

@Alexander Rosado ,

I think you need to trigger this process whenever that field get changed 

So in that case you need to use Edit listener whenever issue is being edited for that custom field you need to run the script which will traverses linked issue and update the field

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events