I need to execute a groovy script which is created in the script runner in JSM when user click on a button
Scenario
I need to execute the below groovy script when user click on the "subscribe" button in the email subscription
Note:- Filter Subscriptions flow as below
Script
Hi Udara.
I'm certain that it is not possible to do on Cloud.
1. You are referencing the Java api on the on-premise version - That won't work on cloud.
2. There isn't an trigger/listener for the subscription button on a filter in scripter runner.
I'm not entirely sure of the purpose of the script, but I believe you have to find another way of doing it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Udara.
I'm not sure if you will succeed doing it with scriptrunner on Cloud - it's not a quick fix.
Maybe you can use a app from marketplace?
https://marketplace.atlassian.com/search?query=export&product=jira&hosting=cloud
The one below have some of the features you seek.
https://marketplace.atlassian.com/apps/1217474/advanced-export?hosting=cloud&tab=overview
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uddara,
I can confirm, as Manne mentioned, that ScriptRunner for Jira Cloud provides no mechanism to run code when a filter is subscribed to, which means it will not be possible to achieve your requirement.
I hope this information helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.