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

I was missing the transition from Open to Closed.

0 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

152 views 1 17
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