Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
A project sync issue to B project, need to create or update issue link in B project issue, in Outgoing or Incoming template the script how to implement it?
Have you looked at:
https://docs.idalko.com/exalate/x/d40rAQ
Let me know if it helps.
Kind regards,
Ariel
We don't seem to have permission to view this document
Hello, Megan Zhou
Sorry for the docs link, that article seems to be archived. Also, by the looks of it's content it's a bit unreliable as well.
If if you have local sync (both projects are on the same Jira), you could try adding the following to your incoming sync script:
BTW this snippet also relies on Outgoing sync script doing this:
Please, let me know how it goes,
Serhiy.
It seems that this method does not work
Let's try this instead then:
Regards, Serhiy.
Can we add issue link in this way? We want to customize the parent issue, but we were unsuccessful. Do you have any better suggestions?
Hello ,@Serhiy Onyshchenko,
Can you see it for me?
Thanks
Megan
Hello, Megan Zhou
With the outgoing sync script that you have, all the children issues would be linked to the same parent - is it intended?
Could you elaborate on
In what way would you like to customize it?
What happened was any link created?
Regards, Serhiy.
Hello ,@Serhiy Onyshchenko,
My test script is associated with a parent issue, and the parent issue will be distinguished based on the value of a fixed file in the future. But the same parent issue used now has not been added successfully.
Thanks
Megan
Aha, so no new link is generated overall, right?
Is this supposed to be the standard sub-task link, and not the issue link from /secure/admin/ViewLinkTypes!default.jspa :
I think it is a issue link from /secure/admin/ViewLinkTypes!default.jspa
BTW, I can see that the incoming script is adding that link only once upon the first sync.
What are the steps you take to test it?
I created an issue in the tested project and used this script to synchronize to another project. I found that the issue has been synchronized and the issue link was not added successfully.
Hey, Megan Zhou , indeed, your config looks just right for this.
In such case, I'd suggest to try using the Jira API to create the link.
First - make sure the issue is created by using: Epic.groovy
Second - use the ComponentAccessor.issueLinkManager to create the issue link between the source and the target issues (also found this as an example: https://docs.idalko.com/exalate/x/SQSOAQ).
Please let me know if you need any further guidance on that
Regards, Serhiy.
Hi Serhiy Onyshchenko,
I will try it according to the method you provided, thank you very much for your help。
Thanks
Megan