I see getActionName function only in jira server. And no exist in Jira cloud ScriptRunner.
How I could reach this in jira cloud? Could you tell me how to do it? Big Thanks!
Hi, @Miles Mai
In Cloud ScriptRunner there is no such function.
You can use solution, described here:
https://docs.adaptavist.com/sr4jc/latest/features/behaviours/create-and-modify-behaviours
// The transition ID for Done
const transitionToDone = 41;
// Get current transition ID
const transitionId = await getContext().then(context => context.extension.issueTransition.id);
// If the current transition is to Done then do something
if (transitionId == transitionToDone) {
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.