You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have configured a series of sub-tasks which auto-populate when a ticket is created and match a certain criteria. These sub-tasks are marked as "To-do" by default when opened. After working on one of them and setting the status as "Done", I proceed to work on the next sub-task which is also completed and marked as "Done". Here is where the problem starts:
After moving the second sub-task to done, the first sub-task that has been set to "done" automatically moves to "To-do", when the page is refreshed. And the series continues with random status' of done and "to-do".
Attaching screenshots for reference, please let me know what can be done to help stop this unnecessary sub-task status changes.
I'm having doubts that this rule is the one causing the problem, which you said was:
After moving the second sub-task to done, the first sub-task that has been set to "done" automatically moves to "To-do", when the page is refreshed. And the series continues with random status' of done and "to-do".
The rule you posted has an "Issue assigned" trigger, meaning this rule will only execute when the Assignee field is updated.
So if the problem you're seeing occurs when transitioning issues, then this rule is not causing the problem.
To investigate which rules might be in play, look at one of the sub-tasks which have been moved into the wrong status. In the Detail Pane of the sub-task (on the right side), click on "Automation - Rule Executions" and review the "Recent rule executions". From there you can click through to see rules which have been recently run against that specific issue.
My guess is that some other rule is triggering to change the status.
For example, we have rules set up to help keep the status of Stories and their Subtasks in sync. Those kinds of rules could easily explain the symptom you're seeing (if you have such rules enabled for the project of interest).
Thanks, @Mykenna Cepek ! I missed that part regarding the trigger.
__Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your detailed response. I am trying to follow your advise and look at which automation rules have run, but I cannot find the said "Automation - Rule Executions" and the "Recent rule executions". Could you please redirect me where to look correctly?
Attaching screenshot of the details tab for the wrong status sub-task
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, my guess is you're not using Jira Cloud (tip: it helps if you tag your questions here with Jira Cloud, Jira Data Center, or Jira Server).
I haven't used the latter two in many, many years; sorry. Maybe under the "More" menu, or hiding elsewhere in an issue (three-dots menu, suppressed by permissions, or not exposed as a "field" on the "screen", etc)? A little help from my DC/Server community colleagues?
Another option (at least under Jira Cloud) is on the Automation Administration screen, where there are tabs to view things like automation "Usage" and "Audit Log" (see screenshot below).
The latter is NOT a rule-based log, but an automation-wide log of what rules have recently run. If you have that, you can make the problem occur, then quickly check that automation-wide Audit Log to see which rules most recently ran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response. You're right, this one is under setting and audit logs. I tried to re-perform the action and unfortunately, I dont see any names of the rules executed using other automations rules, I do see some errors - not sure what it exactly means though.
Thanks & Regards,
Jerin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like only some of the "Action details" are shown above. I only see a couple of notices that look like warnings.
Can you revisit this same execution (match the timestamp) and show the rest of the "Action details"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The two warnings shown above, "Unknown fields set during create", suggest a (separate) problem with the subtask creation components.
Those warnings identify a "Current Status" field, aka "customfield_15900". Have you researched and/or fixed that problem?
The warning suggest that you "Check your custom field configuration", which is a bit ambiguous. The custom field is probably fine. The field configuration is likely suspect. Ensure that Field Configuration(s) used for this project allow that custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, the screenshot above is the Audit Log for this rule. That's not what I was suggesting that you review.
There is a different Audit Log that is global for your Jira instance. It shows all the rules recently executed. Have you found that? It's where you would be able to see what other rules might be triggering around the same time as this rule runs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mykenna Cepek,
Thank you for your response! I have not found the audit log you suggested so far. Probably will ask through another thread in the community here and research before performing the steps mentioned to exactly find what we're looking for.
Thanks again and appreciate your support :)
Kind Regards,
Jerin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still would help to know if your Jira is Server or Data Center (and which version) or Cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In your branch of sub-tasks, have you considered adding a condition to check if the issue is (or is not) in a particular status before transitioning to "to do"?
For example, you could add a check that the status is not equal to done.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bill! Thanks for prompt response.
No I did not consider this as I wanted the sub-tasks to be viewed as "To do" first and then worked on, how can it help though?
where do you suggest I place this - in 1 or 2 (image attached)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In each location where you branch on sub-tasks and try to transition them, please try this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
Thank you for your response. I tried to branch the sub-task out by adding condition: status not equal to done
But this does not reflect for the old tickets. Is it only applicable for the new tickets or is it that this solution does not help?
Thanks,
Jerin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jerin, let's pause for a second to confirm something please:
If it is #1 and only the new subtask needs to transition, you can change to branch on most recently created issue, and the problem with altering other "done" subtasks should stop happening.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
The sub-tasks are already created (not looking at creating new one's additionally) - with the status "To Do", when an assignee is assigned.
I wish to transition the status of these pre-populated sub-tasks to "done", and let it stay as "done". Rather it switches back to "To do"
Hope this clarifies your doubt?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In none of your rule images do I see issues transitioned to "done" by the rule.
Would you please try to post your complete rule as one image? That will confirm that we are seeing the same thing as @Mykenna Cepek and I try to help you. To do that, you may need to shrink your browser zoom, grab the image, and crop/scale it back up. (Or use a screen capture app which handles browser scrolling.)
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
Please find attached the long screen print as requested. Hope this helps!
Thanks,
Jerin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your complete rule image, Jerin.
It does appear you are repeatedly creating new subtasks for the trigger issue, and then transitioning them to the "to do" status. All except the last one, which you leave in whatever the initially created status is. (perhaps backlog?)
Again I recommend you change each branch to just work on the just the most recently created issue as that is all you appear to need.
This should speed up your rule and eliminate the need to test for the "done" status of other subtasks.
If that does not help, I am at a loss of next steps. And at that point I'm interested what @Mykenna Cepek suggests.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
Thanks for the response. I tried to recreate what you mentioned on branch: on most recently created issue, unfortunately the status' still flip unnecessarily.
The trigger issue for assignee change takes places only once for our business case, hence it made sense to trigger this for all sub-tasks to be pre-populated. The last sub-task is an optional one, hence left it to Open - to use only if needed.
Thanks for the support so far!
Kind Regards,
Jerin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You describe...
Then something other than this rule is changing the issues.
Please find an example issue moved from "done" and look at the change history to learn which user made the change:
If that user is the automation user, it is another rule. Talk to your Site Admin and they can help you find the site's audit log for automation to learn which rules were running when the change occurred. Together you may investigate why the subtasks are changing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.