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

0 vote

What browser are you using?

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.

same thing happens in IE 11

 

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. 

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

700 views 6 13
Read article

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