Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confirmation screen for automated transition Edited

Dear All,

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!

2 answers

2 accepted

1 vote
Answer accepted
Jack Community Leader Jul 07, 2021

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.

Dear Jack,

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!

Jack Community Leader Jul 07, 2021 • edited

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.

Like # people like this

Dear Jack!

Thank you very much for your help here, I will try to push a bit more to try to satisfy this requirement, but if it is not feasible in any way, probably I will need to ask our teams to accept it like that.

Thank you again!

Like John Funk likes this
1 vote
Answer accepted
John Funk Community Leader Jul 07, 2021

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? 

Dear John,

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.

John Funk Community Leader Jul 07, 2021

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. 

Dear John,

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!

John Funk Community Leader Jul 07, 2021

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? 

Unfortunately, there is no way to display a dialog box in the browser aside from transition screens, and the transition screen will always be shown during the transition if it exists.

So there is simply no solution to your problem.

Like John Funk likes this

Thank you a lot for replying and helping @John Funk and @David Fischer _Appfire_ ! I will then try to adjust the requirements with what is available.

 

Best wishes,

Domonkos

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

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! ...

89 views 0 8
Read article

Community Events

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

Events near you