Currently
I have a Script Listener for Issuelink Created / Deleted events that runs FunctionX
Under certain conditions, I want FunctionX to be run for linked issues.
My solution for this is to fire an "Issuelink Created" event for these linked issues.
I understand that ScriptRunner for Jira Server allows me to do the following:
issueEventManager.dispatchEvent (Long eventTypeId, Issue {linkedIssue}, User event.user);
Problem
Is there a Scriptrunner for Jira Cloud solution?
Hi Alex,
Thank you for your question.
I can confirm that it is not possible to dispatch an event to be run in Jira Cloud like you can do in Jira Server due to the fact that Atlassian only provides a rest API in Jira Cloud and do not provide a Java API in the cloud like they do in Jira Server.
You can see more detailed information on the differences between the cloud and server versions inside of our documentation page located here.
This means that you would need to configure your Script Listiner in Jira Cloud to fire on the Issuelink created event and would then need to get all of the linked issues in your script and would need to iterate over each issue and make the updates to the issue that you require.
If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.