Transition parent when all subtasks are resolved

Transition parent when all subtasks are resolved - I am trying to use this script. when I am editing the workflow and I add a post function my screen just freezes if I select this option, I don't get to enter any parameters or add the script. If I click on the script name to add parameters the browser tries to make a call but nothing happens, if I click on the add button the browser does nothing at all. It is a workflow with only issue type sub-task on it. Other scripts such as 'fire a custom email' or 'fire an event' are fine.

I am running JIRA V6.2.6 and I am running the plugin version 3.0.10

I have run the integrity checker and re-indexed.

any advice will be very gratefully received.

thank you

 

5 answers

This widget could not be displayed.

What browser are you using?

This widget could not be displayed.

Google Chrome - is that a bad idea?

Not at all. I'll take a look tomorrow.

The way you describe it it sounds like a browser issue - can you hit F12 and look for errors, also check the atlassian-jira.log file on the server for problems.

This widget could not be displayed.

same thing happens in IE 11

 

This widget could not be displayed.

HI,

I have made a bit of progress by looking at the things you suggested. I can attache the script now but I still can't get it working. The parent record does not transition when I close the last child item. To clarify:

I put the script on the subtask workflow so that when the subtask is transitioned to 'closed' it should move the parent item along to the next status (Ready for Test) in it's own workflow. I have attached  a text file with the end of the JIRA log file. It has the lines that were from the time of the transaction. 

This widget could not be displayed.

2015-02-26 14:07:29,090 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] *************************************************************************************
2015-02-26 14:07:29,090 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] Script field failed on issue: PYF-98, field: Scripted answer 1
java.lang.NullPointerException: Cannot invoke method getPriority() on null object
at test.run(test.groovy:32)
2015-02-26 14:07:29,121 http-bio-8080-exec-15 WARN PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [innovalog.jmcf.fields.CalculatedNumberField] CalculatedNumberField: could not find formula in custom field description
2015-02-26 14:07:29,246 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] *************************************************************************************
2015-02-26 14:07:29,246 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] Script field failed on issue: PYF-98, field: Scripted answer 1
java.lang.NullPointerException: Cannot invoke method getPriority() on null object
at test.run(test.groovy:32)
2015-02-26 14:07:29,262 http-bio-8080-exec-15 WARN PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [innovalog.jmcf.fields.CalculatedNumberField] CalculatedNumberField: could not find formula in custom field description
2015-02-26 14:07:29,371 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] *************************************************************************************
2015-02-26 14:07:29,371 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] Script field failed on issue: PYF-98, field: Scripted answer 1
java.lang.NullPointerException: Cannot invoke method getPriority() on null object
at test.run(test.groovy:32)
2015-02-26 14:07:29,402 http-bio-8080-exec-15 WARN PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [innovalog.jmcf.fields.CalculatedNumberField] CalculatedNumberField: could not find formula in custom field description
2015-02-26 14:07:29,543 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] *************************************************************************************
2015-02-26 14:07:29,543 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] Script field failed on issue: PYF-95, field: Scripted answer 1
java.lang.NullPointerException: Cannot invoke method getPriority() on null object
at test.run(test.groovy:32)
2015-02-26 14:07:29,559 http-bio-8080-exec-15 WARN PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [innovalog.jmcf.fields.CalculatedNumberField] CalculatedNumberField: could not find formula in custom field description
2015-02-26 14:07:29,715 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] *************************************************************************************
2015-02-26 14:07:29,715 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] Script field failed on issue: PYF-98, field: Scripted answer 1
java.lang.NullPointerException: Cannot invoke method getPriority() on null object
at test.run(test.groovy:32)
2015-02-26 14:07:29,730 http-bio-8080-exec-15 WARN PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [innovalog.jmcf.fields.CalculatedNumberField] CalculatedNumberField: could not find formula in custom field description
2015-02-26 14:07:29,887 http-bio-8080-exec-15 WARN PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [innovalog.jmcf.fields.CalculatedNumberField] CalculatedNumberField: could not find formula in custom field description
2015-02-26 14:07:29,949 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] *************************************************************************************
2015-02-26 14:07:29,949 http-bio-8080-exec-15 ERROR PAUL2834 847x4195x1 1sfxwe4 10.70.105.35 /secure/QuickCreateIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] Script field failed on issue: PYF-98, field: Scripted answer 1
java.lang.NullPointerException: Cannot invoke method getPriority() on null object
at test.run(test.groovy:32)
2015-02-26 14:07:43,715 http-bio-8080-exec-7 ERROR PAUL2834 847x4230x1 1sfxwe4 10.70.105.35 /secure/CommentAssignIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] *************************************************************************************
2015-02-26 14:07:43,715 http-bio-8080-exec-7 ERROR PAUL2834 847x4230x1 1sfxwe4 10.70.105.35 /secure/CommentAssignIssue.jspa [onresolve.scriptrunner.customfield.GroovyCustomField] Script field failed on issue: PYF-98, field: Scripted answer 1
java.lang.NullPointerException: Cannot invoke method getPriority() on null object
at test.run(test.groovy:32)
2015-02-26 14:07:43,731 http-bio-8080-exec-7 WARN PAUL2834 847x4230x1 1sfxwe4 10.70.105.35 /secure/CommentAssignIssue.jspa [innovalog.jmcf.fields.CalculatedNumberField] CalculatedNumberField: could not find formula in custom field description

There's nothing in here relating to a transition. But I'd sort out: Script field failed on issue: PYF-98, field: Scripted answer 1 ie fix the script field, and removing the field from the other plugin, then it might be clearer what is going on.

Hi, I have been away from my office for a few days but I am back and still working on this problem. I am having trouble identifying the script field that is causing the trouble. I will be back in touch when I have made a bit more progress. Thanks for your help so far. Cheers

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

128 views 2 0
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you