Nischitha,
I was able to make some headway after reading the issue Bob Swift posted. However, JIRA has since been updated to remove the "Conditional Execution" functionality using Groovy, which nullified this solution. JIRA now displays the following message:
Conditional execution is not available on JIRA Cloud because Groovy scripts are not allowed.
I find it ludicrous that I even needed to consider this lengthy and complicated workaround, for such a fundamental workflow function. Nevertheless, I recommend you follow and vote for this issue:
https://jira.atlassian.com/browse/JRA-45379
Hopefully an update later down the line will enable this basic customization option.
Hey Patrick,
Did you find any solution?
I too am trying to run a script in the post function for a conditional execution, the same as you. However, the moment I insert a even a single statement such as
"def isssueManager = ComponentAccessor.getIssueManager();"
the script stops working.
I am not sure, if scripts are meant to be executed within the condition or is it only groovy expressions that can be executed?
Also, what #imports are you using?
Regards,
Nischitha.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.