I have this fairly straightforward workflow post-function that should close a parent issue once all of its sub-tasks have been closed. But it doesn't Any suggestions?
The second image is the Conditions tab, and there's no Validators. My current hypothesis is that it is because of the Resolution field being required in the Screen for the Close transition. Also, the post-function does work if dragging tickets into columns in the Work view. However, it doesn't work if I Close all the sub-tasks from the parent ticket view (see image #4 in the original post).
Resolution is not required on the transition - only the validators do that and you've said you have none. You could have a point though - could you try adding a post-function to the *parent* workflow of "set resolution to fixed" (temporary, of course) and see if it works then? Also, does the person closing the sub-task have the permission to close the parent as well?
Cheers Nick. I tried setting the resolution, and that post function works ok. But transitioning the parent ticket still doesn't work as expected! That said, it _is_ working on the Work view of the Agile board ie. when I close the last sub-task, I get a dialog asking if I want to close the parent ticket as well. But it still doesn't work in the ticket view, which is frustrating because as some of the team use that view more often.
Ah, actually, I've just realised it isn't. Agile adds a function that does the automatic close, so I suspect yours is not working at all! The workflow you've given in the screenshot looks fine, but can I just ask if it is the only workflow for the project? If it is not, then what issue types is it used for?
No, I'm sorry, I did not phrase that correctly. I wanted you to check the permissions on the top level issue. Look at one which has open sub-tasks and check that they are NOT offered "close" as a transition. Then look at another that has all it's subtasks closed - can they transition it manually?
I Have the same problem, with the only difference that my parent does not transtion because (i think) it has 3 scripted post functions ( 1 creating a subtask, 1 sending a mail and the last one setting a custom field).
When i remove those post function the transition works.
What do you guys thiknk ?
I had the same issue. The problem was on the condition of the parent transition to hide the transition to the users. Removing that one the post function works correctly. And the transition condition on the children subtasks does the job of hiding the transition at the same time.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
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...
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!
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