Originally asked by Andrew Hines on 26 June 2020 (original question)
Use case is two Connections used for different reasons.
Connection A is for Issues in the support desk project (ITSM) in JIRA Cloud syncing Issues that have been classified as Known Problems to Bug Issues in the Development JIRA Server project (JSMO).
Connection B is Issues in the support desk project (ITSM in JIRA Cloud syncing Issues where time has been booked to a specific database (JSDT) on the Development JIRA server
Connection A runs first and Exalate is used to link the (ITSM) Known Problem to the (JSDMO) Bug.
Then the user books the time they spent in ITSM and Connection B gets triggered.
Connection B checks to see if it’s a new issue (no) and then the worklogs get synced to the issue in JSMO - rather than creating an Issue with associated worklogs in JSDT as intended.
Q1 - Is it supported to have one Issue sync to different remote Issues depending on which Connection is used ?
Q2 - If it is then what is a better way to write the initial check to see if we should create a new issue in the code fragment below:
Would it be valid to add issue.projectKey = “JSDT” at line 13. Would that make it generate a new Issue in JSDT when I synced the worklogs ? I presume that’s where the Issue creation takes place…
Thanks for any advice …
Andy