Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger ScriptRunner listener event on Jira Cloud

alexmears
Contributor
July 21, 2019

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?

1 answer

1 accepted

2 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
July 22, 2019

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

alexmears
Contributor
July 22, 2019

Sad, but thank you for letting me know.

Suggest an answer

Log in or Sign up to answer