Hello all,
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.
For example...
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
User condition
If: Initiator is
Tom Smith
Terry Shaw
Cindy Lou
Then: Transition the issue to
In Progress
JQL condition
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.
Best regards,
Bill
Hello @Bill Sheboy
Thank you for your input! I'll see if I can post a picture of my entire automation. I've just blocked out the names of the employees for privacy reasons.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Best 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 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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this server or cloud?
In cloud, I verified behaviour of branch execution is as expected and inline with the document.
Thanks!
Update:
We have raised ticket in backlog: https://codebarrel.atlassian.net/browse/CAVE-3429 to correct document!
Document states that if a branch only has one issue it will be run inline. However, this is not necessarily the case anymore and we can not guarantee the order.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @John Funk ,
Afraid I'm on paternity leave till April, sorry mate!
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.