I am new to Jira administration and would like to create a new automation. The core of the automation is quite straightforward: when all sub-tasks are put in any kind of "green" status (eg. Closed or Resolved), the Parent should get the same status automatically.
However I would like to include a "Confirmation screen" where the person who closes the last sub-task can confirm that the parent ticket also will be automatically closed. This is necessary in order to avoid closing a parent ticket accidentally (eg. when some work was not included in sub-tasks).
I would like to solve this with automation, but I see no such feature that allows me to add in such a screen or notification.
Is there a better way to implement this?
What I already tried but found no good solution:
- add in a validator to the transitions to "green" statuses - but this applies to all ticket types, not just sub-tasks
Thank you in advance for your help!
Automation will not provide a solution to present a modal pop up. Automation is like a post function it reacts to a trigger such an issue transitioned. You could consider sending an email notification (within the automation) to the person that triggered the last event. However in my opinion that email notification soon be considered spam.
Thank you for your answer!
But if it can be looked at as a post-function, it is still possible to give some conditions that need to be fulfilled before the automation goes through. I would like to create such a condition with a user prompt that she or he needs to accept before the automated transition happens.
Can you maybe suggest an other way to approach this task? Emailing would be not a good solution because if the parent ticket should have not been closed with the last sub-task, it still needs to be reopened manually.
Thanks again and have a nice day!
Again automation will not provide this capability. Consider that automation happens in the background based upon the trigger. The automation could be delayed by several seconds so the individual could be doing something else and all the sudden the random pop up appears that would not work. Moreover who would you display the pop up to what is a person that triggered the event logged out before the automation ran. it just isn't possible with Automation. If you want a modal pop up it needs to happen during the event like during a transition. That is the purpose of using a screen and associating it to a transition in a CMP project.
I think the best option is to simply Close the parent task if all subtasks are complete. A notification can be sent to the owner of the task and they should be educated to ensure that is the desired outcome. This could all be accomplished via automation.
Hi Domonkos - Welcome to the Atlassian Community!
I am a little confused here. You want to auto close the parent when all of the sub-tasks are closed, but you also want to provide a transition screen telling them they need to close the parent? Why would you provide that screen if you are automatically closing the parent anyway?
Thank you very much for your answer! I think I formulated the requirement unprecise, I updated the question:
I would like to ask for the confirmation of the person closes the last sub-tasks to make sure that the parent ticket is not closed accidentally. This could occur if not the whole workload of the ticket is broken down into sub-tasks.
You simply need to add a condition on the transition to Done in your workflow for the parent issue type to not allow it to move if all of the child tasks are not complete.
So edit your workflow.
Click on the transition to Done.
Click on Conditions.
Click Add condition.
Select Sub-Task Blocking Condition.
Choose the statuses that apply.
Save and Publish your workflow. This will never allow the parent to be marked Done if all of the children are not Done.
Thank you for your further help. Unfortunately this is not exactly what we would like to achieve.
What we would like to have:
When you close the last open sub-task, you should receive a notification: "Closing this sub-task will also close the parent ticket! Do you want to proceed?" and then to have the possibility to proceed or cancel.
This would be basically a safeguard to not to close a parent incident accidentally. It comes up for us that not every task is in sub-tasks and there is still some work to do after the last sub-task is closed.
From the other answer from Jack it seems that Automation cannot currently provide such a "confirmation prompt" feature.
Do you maybe have an other idea how to approach this requirement?
Thank you again!
Yes, Jack is correct on that. The only thing that I know of that would come close is to possibly use the JMWE add-on with a custom validator that could check if this is the last open sub-task before giving you the option.
@David Fischer _Appfire_ - Andy thoughts?
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events