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, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events