I am looking for a way to close all sub-tasks when the parent closes. I came across the Post Function here but I'm afraid it's not working for me.
We are on JIRA 5.0.2 with Script Runner 2.0.7
This is the error: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: transientVars for class: Script4
Found a ticket on GRV [GRV-125] and tried Jamie's comment: I have no idea. Just for a test replace the line
String currentUser = ((WorkflowContext) transientVars.get("context")).getCaller();
String currentUser = ComponentManager.getInstance().getUserUtil().getUser("admin").getName()
In that string change admin to a user that has permission to do the transition.
Then I get this error: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: issue for class: Script23
I'm using the same code from the example above (here) for default workflow (just testing ;) ) and instead of closed sub-tasks I've got sth like this:
groovy.lang.MissingPropertyException: No such property: a for class: Script2
I must admit that I am not best in 'grooving'- could anyone help me? I would really appreciate.
There's now a very easy to configure way to transition parents and sub-tasks in sync using Automation for JIRA!
(this example transitions sub-tasks to "In Progress", but you could easily change this to "Closed" as well)
Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot