Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Ticket assignment by timestamp

Trevor Long
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2025

Hello,

We have started a second shift and are need to split the ticket assignment by issue created timestamp. The past solutions have been locked behind the Archived files. https://community.atlassian.com/t5/Automation-questions/qa-p/automation-questions.

I'm need to determine a method how to have a 1st (6AM-5PM CST/CDT) and 2nd (5PM-2AM CST/CDT).

I already have an automation to assign ticket based on different buildings. So, I would like to update the if statement for when an issue is created.

2 answers

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
September 4, 2025

Hi @Trevor Long 

 

I think you need to extract just the hour in 24h format after conversion and compare it

{{now.convertToTimeZone("America/Chicago").format("HH")}}

That will return values like 06, 14, 23, etc.

You can then add conditional checks such as:

  • If >= 06 and < 17 → assign to 1st shift

  • If >= 17 and < 02 (next day) → assign to 2nd shift

But in this case you need to handle timespan like 17:00 - 02:00. So more else ifs will be needed.

 

By the way, I’m one of the folks behind the free app SnapAssign. 🙂
It’s built specifically to handle things like round-robin and shift-based assignments in Jira, without needing to maintain long chains of conditional rules. SnapAssign could make your shift split logic easier to configure and maintain. Please let me know if you have questions on that regard.

0 votes
Matteo Vecchiato
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2025

Hi @Trevor Long

Welcome to Atlassian community and thank you for your question.

Inside automation you can user smart value to get the day hours like this:

 {{issue.created.format("HH")}} setting in a variable and comparing with an if.

For reference, smart value date functions: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/ 

Cobditiona logics: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/ 

Math expression: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/ 

Hope it helps 

 

Trevor Long
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2025

Hello @Matteo Vecchiato

I attempted to have the timezone sync for CST, then assign tickets to our 2nd shift team. The rule failed. This is the smart value I tried:
{{now.convertToTimeZone("America/Chicago").shortTime}}

Maybe for a better understanding here is a snip of the if statement I have for auto assignment based on the custom option for building (since we deal with multiple sites).

 Capture.PNG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events