Use script runner plugin to immediately close a newly-opened issue

I believe I am following the correct steps, but the newly-created issues are not being closed, my workflow is attached (Immediate.xml.txt)

2 answers

1 accepted

0 votes
Accepted answer

I was missing the transition from Open to Closed.

Anything in the logs? probably you need to set a resolution on that transition....

Here are the relevant log entries, note the post-function is already at the bottom of the list.

2014-04-02 13:25:22,098 Thread-893 ERROR username 805x13718x1 32av5l 10.0.8.112 /secure/QuickCreateIssue.jspa [groovy.canned.utils.WorkflowUtils] Errors: {}
Error Messages: [The workflow operation with action id '111' does not exist in the workflow.]
2014-04-02 13:25:22,098 Thread-893 ERROR username 805x13718x1 32av5l 10.0.8.112 /secure/QuickCreateIssue.jspa [groovy.canned.utils.WorkflowUtils] Not attmpting transition
2014-04-02 13:25:22,099 Thread-893 WARN username 805x13718x1 32av5l 10.0.8.112 /secure/QuickCreateIssue.jspa [canned.workflow.postfunctions.FasttrackTransition] Could not delay changegroup creation time - post-function probably set on Create transition before issue was created. Move function to bottom of list.

Did you publish the workflow? Is that definitely the right workflow config in the question?

The config refers to action 2, but the log refers to action 111.

Good questions, Jamie, but yes, the workflow is published and it is the correct workflow. I might try to repeat this in a different environment.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,772 views 18 21
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