Ideas on JSD automation for transition on comment 'race' condition

Jack Brickey Community Champion Oct 25, 2016

I have been racking my brain on a situation that started occurring recently and am hoping others have some ideas on how to address. Let me set the stage w/ some background.

Scenario: a few days back I started seeing where, when an agent initiated the "Respond to customer" (RTC) transition and entered a comment for the customer/reporter, the status was not changing from "Waiting for support" (WFS) to "Waiting for customer" (WFC). 

Digging in: I found that in fact the issue was transitioning from WFS to WFC BUT immediately transitioning back to WFS. I figured this must be associated w/ automation so began inspecting my rule for Transition on comment that is intended to transition back to WFS as soon as the customer comments back to the agent. First blush everything looked ok but after walking away from it and thinking about it I wondered if it was sort of a 'race' condition. My theory was that the actual comment that the agent was entering in associated w/ the RTC action was being triggered by the automation rule mistaking the comment as being a response from the customer. Sure enough, disabling the rule resulted in the desired/expected behavior of the status transitioning and staying in the WFC state. Unfortunately, if the rule is left disabled then a comment back from the customer wan't result in transitioning back to WFS. sad

My question: How best to reconfigure my automation rule to deal with the issue. I have provided a picture of what I have today below. Note, that this is an internal IT helpdesk project and as such i have all employees listed as customers, including agents. I considered removing all agents from the customer list which would allow the current rule to work but for various reasons I don't want to do so unless there is no better solution.

I'm scratching my head as to what changed as I know this was working. I'm wondering if an update to the cloud recently occurred such that the state is transition before the comment is recorded. If the reverse was done then the 'race' condition would not be an issue.

All ideas welcome.

2 answers

0 vote
Jack Brickey Community Champion Oct 25, 2016

attachment...

image2016-10-25 11:59:28.png

0 vote
Jack Brickey Community Champion Oct 25, 2016

Update: for now I have added 'user is not an agent' to my IF. so basically user = customer AND user ^= agent. It works for now but there are some corner cases to deal with.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

59 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you