I have a team-managed project used by my operations staff to manage repetitive tasks.
This project has two possible 'done' statuses, "Done" and "Closed". The deciding factor hinges on Subtask3- a task should only be allowed to transition to "Done" if Subtask3 is also "Done". If Subtask3 is any other status, and a user tries to transition the task to "Done", I want to instead transition it to "Closed" (or just prevent it from moving to "Done").
For context, we transition the parent to done manually. For some reason, some people on my staff continue to choose the wrong status. I realize this may not seem like a big deal, but many other things are happening (e.g., automation, reporting, etc) that depend on the parent being routed to Done or Closed correctly.
To summarize what I'm looking for:
WHEN: task is transitioned to DONE or CLOSED
IF the subtask named Subtask3 = DONE
THEN task is transitioned to DONE
ELSE task is transitioned to CLOSED
If the above isn't possible, then a rule to prevent a transition to DONE IF the subtask named Subtask3 is not DONE. Basically, the task would remain in the status it was in before a user tried to transition it to done.
Hi Brandon,
The first thing to note is that automations happens after an event. So it can't prevent an event from happening. It can undo and change the event. Such as, let's assume that we can figure out how to analyze the status of subtask3, then we could change the status of the task from Done to Closed. The challenging piece is to figure out which subtask is subtask three. There has to be some way to analyze this within automation. So, what is unique about subtask3 and can we always rely on this footprint for that subtask?
Good point, and great question.
For starters, Subtask3 is always the third of five subtasks created. I have an automation rule that creates the subtasks for each new task, and as far as I can tell, the order in which the subtasks are created is exactly as I have it set up in the automation. In other words, Subtask1 is always first, Subtask2 is always second, etc.
Subtask3 is the name/summary/title of the subtask every time it is created. Task1 has a Subtask3, as does Task2 and so on.
If the name/summary and/or the position of Subtask3 (3rd of 5) aren't sufficient to base the rule on, I suppose I can add something unique to it to make identifying it easier. For instance, a specific label or some other field value that isn't used elsewhere in the project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I suppose I could also create a link between Subtask3 and the parent in the subtask creation rule. It seems redundant to me since Subtask3 already has a parent/child relationship, but if it's necessary to be able to run the automation reliably, then so be it.
Or maybe set an entity/property variable? I haven't worked with those yet, but if it's a method of assigning a unique value to the subtask that can be used to reliably identify it that could work too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Brandon , stewing on this and came up with a thought...
What if you were to create a rule like this...
second rule for the task action...
The above is a complete solution, but hopefully you get the idea and agreed that it might work and give it a go. If you do, let me know what you come up with. An interesting used case for sure. Might be worth an article in the community once we get it working and refined.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Jack Brickey , sorry for the delay, I try to stay away from work over the weekend.
Yes, you're solution should indeed work. Based on your earlier response I had already concluded that for this to work I would likely need to set some field to a unique value (e.g., a label) in order to properly identify the subtask and route the transition.
I likely won't be able to modify and test the rule until tomorrow, but I will report back as soon as I have the results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Jack Brickey
I created two automation rules using your idea as an outline. What I came up with is slightly different but the concept is similar. In any case, I tested this automation and they worked flawlessly. I really appreciate the help!
To recap the solution that I ended up with for future readers:
So now I can reliably apply a unique label to a specific subtask when it is completed. This is vital to the next automation rule, which is for the parent task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.