Hello, how can I link an issue upon creation? I can’t use the REST API to create the link in the incoming script because the issue hasn’t been created yet and therefore doesn’t have a key.
I tried using the following code:
issue.issueLinks += new BasicHubIssueLink(
138179 as Long,
“relates to”,
“Relates”,
IssueLinkType.ISSUE,
null,
false
)
but it does not create the link and does not produce any errors
1 Like
Hi @saimannex,
Welcome to the Exalate community!
Thank you for reaching out! We recently shared a post addressing this use case, and I’ll include the link below for your reference.
The script in question automatically handles linked issues when an issue is Exalated. Specifically, when an issue is Exalated, it will also Exalate any linked issues to the remote instance. This ensures that all linked issues are synchronized correctly, so you won’t encounter the issue where one of the linked issues isn’t synchronized and, as a result, cannot be linked during creation.
I recommend taking a look at the documentation, and feel free to let me know if you have any questions or run into any issues. I’m happy to help!