I would like to get a user action name (e.g. Create, Clone, etc.) inside a post function to alter workflow depending on the action. For instance:
Script Runner's Behaviours offers a predefined function to get action Name: getActionName().
Hi Bartosz
I'm sorry I pointed out to the wrong thing. As a matter of fact we have an article of this in our documentation that I totally overlooked.
Apologies once again, I hope this was what you were looking for
Cheers
Dyelamos
Hello Bartosz.
I suppose you can create a Custom Script like this:
if (getActionName() == "Create Issue") {
issue.setDescription("Your new description")
}
This should work as is your Custom Script postfunction dialog.
If this isn't what you wanted, please let me know and expand your examples.
Cheers
DYelamos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response, @Daniel Yelamos [Adaptavist]. The getActionName() function won't work inside custom script for post-function. Event the script editor does suggest this function is unavailable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.