How to get the remote issue key via REST?

Originally asked by Yaakov Shamii on 09 September 2019 (original question)


Hi,

Is there a way to get the remote issue (the issue that is synced) via REST API call (either Exalate or Jira) without URL issue link?

Thanks!


Comments:

Francis Martens (Exalate) commented on 09 September 2019

Hi Yaakov,

Can you elaborate on what you would like to achieve?

The issue key can normally be transported by adding it to the message sent from A to B

This then can be applied onto the local issue with something like

issue.customFields."Remote Key".value = replica.key
Yaakov Shamii commented on 11 September 2019

Hi,

I’m trying to get the remote issue key without sending it from the remote side. Anyway to do it?

Yaakov Shamii commented on 12 September 2019

Let me clarify - I want that once Exalate finish creating the issue in the remote JIRA, I will be able to get the remote issue key from REST without syncing it back from the remote JIRA (or, for example, save the key in a custom field). Is it possible?

Answer by Francis Martens (Exalate) on 12 September 2019

This is a pretty straightforward operation (on Jira Server)

Check the ExalateEventListener.groovy documentation with some hints to get it implemented.


Comments:

Yaakov Shamii commented on 12 September 2019

Worked! Thank you very much Francis

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.