While investigating an automation rule and seeking help in the community (see post here), I came across an interesting anomaly that I could not explain. I have since found the answer and wanted to post this pseudo question so that I could actually provide the answer. The intent is to help others that might run across this in the community.
While using statuscategory() within an automation rule condition I discovered that rather returning "to do" I was receiving "new". I attempted this in a different Jira instance and did not observe this anomaly.
....Look to the Answer for...well...the answer.
Here is the explanation
I researched this through all of the normal channels (Community, Google, peers) without any luck. So I reached out to Atlassian support and was able to get closure. Yay!
Info back from Support (BTW hats off to them for a same day response)
<There is an open bug on this> - https://jira.atlassian.com/browse/JRACLOUD-80301
Essentially, in some places within Jira cloud's code, the "To do" category is instead named as "New", such as when querying via webhook/rest API and seeing it in the payload. In your situation, that's probably where automation is grabbing the status category name from instead of where ever else it's stored as "To do".
However, in all cases, it's essentially just a naming discrepancy where they both fall under the same exact category in itself, and should function all the same. The only time it may matter is if you're trying to use that smart value within a condition, in which case you would just set the condition up for "New" instead of "To do" in mind.
It is worth noting that in my case I am precisely interested in using the statuscategory() in a condition within my automation rule. Given that I don't really understand when this might occur I will likely build that into my conditions. That is, I will consider both "new" and "to do" in my conditions just to future proof them.
I hope that this helps anyone else searching for an answer should they come across the anomaly.
I hypothesize racetrack errors like this are going to get "worser" before they get "better".
Today, the Issue Created trigger (or a webhook capture of that event which triggers an Incoming Webhook trigger) can fire before all of the data is available. This manifests as at least these symptoms I have observed:
The mitigation for these symptoms is to add the Re-fetch Issue action after the Issue Created trigger (or some other delay for the Incoming Webhook trigger before accessing the content). These symptoms seem to also happen in some cases for the Issue Moved, Issue Linked, and Issue Updated rule triggers.
Now the worser part...I have seen questions and defects perhaps indicating the changes to sunset "Epic Link" and replace it with "parent" can lead to multiple issue events firing for the same issue change! I again hypothesize this is both a racetrack and code error: rather than using the endpoint's ability to set the parent when an issue is created, it appears to happen with a second endpoint call, leading to a new event...and potentially multiple rule runs for the same person-initiated action.
Another "I wonder": perhaps the brand-new retry capability rolling out for automation rules is over zealous, leading to racetrack errors we have not even observed before. Who knows?
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.
Thanks for the insights @Bill Sheboy . I don't disagree with your concerns. It is an interesting hypothesis you pose and just for grins I may try the refetch post trigger on my observations here.
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.