Originally asked by sapir monza on 27 April 2021 (original question)
Hi,
I have the following code in order to sync fixVersions filed with customer “Fix in versions” filed:
issue.customFields.“Fix in version”.value = replica.fixVersions?.collect
{it.name}.join(“,”)
It works fine!
But, I want this code will run only when fixVersions filed is updated and not every time.
I tried something like:
if (replica.fixVersions.updated?){
issue.customFields.“Fix in version”.value = replica.fixVersions?.collect{it.name}
.join(“,”)
}
It doesn’t work, I guess my “if” condition syntex is not right.
What do I need to put in the condition?
Thanks!
Sapir