Transition parent when all subtasks are resolved

Paul Dillon February 23, 2015

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 votes
Paul Dillon February 26, 2015

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

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 27, 2015

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.

Paul Dillon March 4, 2015

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

0 votes
Paul Dillon February 26, 2015

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. 

0 votes
Paul Dillon February 24, 2015

same thing happens in IE 11

 

0 votes
Paul Dillon February 24, 2015

Google Chrome - is that a bad idea?

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2015

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

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2015

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.

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2015

What browser are you using?

Suggest an answer

Log in or Sign up to answer