The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
3
2
1
1 answer
- 210
Sorry for the delay here.
The problem is that Epic.receive has an embedded issue creation logic resulting in a conflict with the createIssue used after it.
(I know - we need to do a better job in the documentation)
Now the solution is to add a parameter in the createIssue
The method signature is
BasicIssueKey create( boolean reuseIssue, BasicHubIssue replica, BasicHubIssue issue, com.exalate.api.domain.connection.IConnection relation, com.exalate.node.hubobject.v1_3.NodeHelper nodeHelper, BasicHubIssue issueBeforeScript, com.exalate.api.domain.INonPersistentReplica remoteReplica, List<com.exalate.api.domain.twintrace.INonPersistentTrace> traces, List<com.exalate.api.domain.IBlobMetadata> blobMetadataList, Closure<?> whenIssueCreatedFn)
The default value for reuseIssue is 'false'. When you change the call to (check line 2) - you should be fine
return CreateIssue.create( true, replica, issue, connection, issueBeforeScript, traces, blobMetadataList, httpClient, syncRequest ) { IssueLinkSync.receive(replica, issue, httpClient, nodeHelper) }
Can you check and let us know
CommentAdd your comment...
Overview
Content Tools
search
attachments
weblink
advanced
I'm having the following error when trying to follow the issue link that's described in this link.
What I need to achieve is to get the issues linked in the project WAND, the other project (WNG) has the issue links, how could I do that when the issues already exist in project WAND? I mean, when they have already been synced... the docs describes a way to do the links when creating an Issue, is it possible to update the links when updating an issue?
Hi Jo,
It is a bit unclear what you would like to achieve, can you go through it step by step?
Once that we understand, we can provide an answer.
Sure, here are the steps/details:
The code in the docs link explicitly says `IssueCreate.create`, in other words it will try to create an issue, the errors make sense, what doesn't make sense to me is that there's no well described guide to achieve this.
Here are my scripts:
I've placed the `CreateIssue.create...` code from the docs inside the firstSync validation to avoid errors, but I can't get my issues linked in WAND project, the steps you mentioned at the Atlassian post doesn't work either.