I've been playing around with this automation for about two weeks, looked at dozens of posts on this forum, but still can't figure it out so I figured it was time to create my own post. What I'm trying to do is create an automation that transitions the status of a ticket when one of three users is tagged, and then transition again if any of those individuals replies.
If someone adds a comment and says "Hey @tomsmith, can you take a look at this" the status of the ticket would change to "waiting for response." Then if Tom Smith comments on the ticket saying "Looking at it now" the ticket would change to "in progress"
I'll post the whole automation below, but basically what's happening now is whenever the specific user comments it will satisfy both conditions and go from "waiting for a response" to "in progress" at the same time but I don't know why. Any help would be greatly appreciated!
When: Issue commented
Branch rule / related issues
For Current Issue
If: Initiator is
Then: Transition the issue to
If: Issue matches JQL
comment ~ "tsmith" OR comment ~ "tshaw" OR comment ~ "clou"
Then: Transition the issue to
Waiting for Response
For a question like this, it can help to post an image of your rule to provide some context and to confirm what you are trying to do matches what your rule shows.
I suspect that because you are using a branch, the processing is completing in the branch and then proceeding to do the rest of the logic. Perhaps you want something like this:
If you specifically want to check the text of the comments (e.g. "can you take a look at this") you may add a Branch and Condition before each Action to transition.
Please also note: a rule like this can be a bit brittle, as your board and workflow outline your process, and now it is also couple to the rule. Watch for them getting out of sync.
Thanks for that rule image, Matthew.
As I suggested, your branch is checking for initiator and then moving issues to "In Progress", and then immediately after it could move things back to "Waiting For ACS Response".
Without too much change in your rule you can fix this as follows (please see the bolded changes):
By the way, branches solve some rule needs and can create other challenges because they run asynchronously: there is no guarantee that they run to completion before the rest of the rule. The one exception is when the branch has only one issue (such as current issue). Please watch for this impact in your rules, and the performance issues of branches.
Hello @Bill Sheboy ,
I was trying to add an update yesterday but for some reason the site wouldn't load no matter what I tried. So I took your advice and edited the automation, but I'm still running into some issues where it will make both changes within the same minute. Did I add something incorrectly?
This is the new automation:
But here you can see it making the both changes in the same minute:
Hey Matthew - your last condition is going to process at the same time your branch is going to process since they are in the same level.
Your re-fetch is on the branch and not the main level so the last part will happen probably before the re-fetch even happens.
You might want to pull the last part our and do it as a separate rule that would fire based on something that happens under your branch.
Consider what John suggests, or you may remove the Re-Fetch and add to the condition outside of the branch to prevent parallel execution:
Of note, and I am hoping someone from Atlassian automation dev team will respond to this question:
The behavior Matthew is seeing does not match the documentation for automation or comments made in this community forum by the dev team members. Branches which evaluate to one and only one issue are supposed to run in-line and rule processing waits for branch completion to proceed. The symptom observed indicates this isn't accurate and that branches *always* run asynchronously from the rest of the rule logic. What is the expected behavior?
Thanks and best regards,
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