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
Community Members
Community Events
Community Groups

Copy Field Value Scriptrunner



I have a project where I create an issue. The ticket is now in Waiting for support.

My next status is: In Progress 

Prior to getting to that status I have set a transition called Pick Up:

Within this transition I have setup post functions, namely: Create A Linked Issue (JSU) in another project. It creates a linked issue without any problem.

Now I am in the project where the linked issue is created. This linked issue has a Smart Checklist, the Source issue also has a Smart Checklist. 

Within the workflow of the linked issue I have created a transiton which is called: Update Master:
As you can see it is a loop from In Progress to In Progress.
Within this transition I have added a post function (scriptrunner):

Copy field values

Copy field values from one field to another



As far as I can see I have everything setup correctly but the post function is not updating the smart checklist of the issue uin the other project.

What am I missing?

Many Thanks.


2 answers

Hi @Howard Nedd !

The problem is that  “Copy field values [ScriptRunner]” does not trigger issueUpdated event. And Smart Checklist plugin listens to issueUpdated events and checks if the field Checklists was updated. Nothing was updated in your case because issueUpdated was not triggered.

Instead of adding a “Copy field values [ScriptRunner]” post function we suggest to add a “Custom script post-function [ScriptRunner]” with the following code (sorry, Atlassian doesn't allow to paste it here). 

Hi @Julia Romanenkova_Railsware_ ,


Thank you for taking the time. I added the suggested script via a custom script post function [scriptrunner] to transition within the workflow. Sadly, this is still not giving me the desired result.


Am I doing something wrong here?



0 votes
Craig Nodwell Community Leader May 19, 2022

Hey @Howard Nedd there should be an execution log on the scriptrunner post function, have you looked at that for clues?

Hi Craig,


Thank you for replying. 
That's the first place that I have checked but it is just stating that all is OK:


Which makes it even more dificult to solve.

Any tips and tricks :)?


Craig Nodwell Community Leader May 19, 2022

Not so much errors but what's in the payload .. is it accurate ? Project Issue etc etc for both issues..


Good find Craig. 

For some reason the payload is reffering to the same issue twice. Not sure that should be the case. So, TESTISSD-224 should be the trigger issue, but not the target issue. I would expect to see the target issue here which is in another project.

Also, any idea why this is saying defect?

Craig Nodwell Community Leader May 19, 2022

I suspect this setting here...


Craig Nodwell Community Leader May 19, 2022

lol you're fast.
that's your inward / outward link description setup by the jira admin.  Getting this right is really important 

Like Howard Nedd likes this

So I changed it from created by to created as I suspected that that was the issue but this did not solve it.

As you can see I am making the logic choice by using "Created By" as this is the link type that the issue has:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

178 views 1 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you