1
0
-1

Hello,

I nedd to sync customField “ATOS Component to partners Jira field Component.

I do it by script:

if(replica."ATOS Component") {
def component = nodeHelper.getProject(issue.project?.key ?: issue.projectKey).components.find {c-> c.name == replica."ATOS Component".value}
issue.components += component
}

Now I need sync component, not to add component.

How can I replace old one or sync (not add) component by Exalate?

I need oneway sychronization:

Configuration:
1.node outgoing sync: 

replica.customFields."ATOS Component" = issue.customFields."ATOS Component"


2.node incomming sync:

if(replica."ATOS Component") {
def component = nodeHelper.getProject(issue.project?.key ?: issue.projectKey).components.find

{c-> c.name == replica."ATOS Component".value}

issue.components += component }


Result:
Initialization
1.node: "ATOS Component" = no value
2.node: Components = no value

I set "ATOS Component" on 1.node: "ATOS Component" = "CDE.Podatelna"
After sync 2.node: Components = "CDE.Podatelna"

Then I will change "ATOS Component" on 1.node: "ATOS Component" = "CDE.Workplace"
After sync 2.node: Components = CDE.Podatelna, CDE.Workplace

But I need to be Component= "CDE.Workplace" on 2.node

Can you help me please?

(posting it on behalf of the client)

    CommentAdd your comment...