I am trying to popup a dialog on a transition to capture some data, with which I would like to run some JIRA REST API requests afterwards. I am using JIRA Cloud and ScriptRunner Cloud - is there a way to achieve what I could with ScriptRunner on JIRA Server?
Hi Brian,
The way I would achieve this in JIRA Cloud would be to have a transition that had required fields on a screen. These fields would capture the data you need and then when the post function fires you can use ScriptRunner to make the REST API calls.
There is no way for any add-on to intercept transition calls on Cloud in the same way that is possible on Server.
Hope that helps
Jon
Thanks @Jon Mort (Adaptavist)
In your scenario, the transition screen allows a user to add some data, which hopefully are saved "into" the issue they are viewing, then:
I could have a script postfunction that retrieved the values of those fields (which would necessarily be on that particular issue) and based on the values do something (create another issue of a type determined by the values the user specified when they entered data into the transition screen).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Exactly - this is the kind of workflow that ScriptRunner is designed to support
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.