Auto Assign ticket in 3 shifts

Sampath
Contributor
July 1, 2023

Team

 

We have 8 Members :

Weekdays : APJ - 2 Members EMEA - 3 Members AMR - 2 Members

Weekend - APJ - 1 Members EMEA - 1 Members AMR - 1 Members

 

I need to do auto assign the tickets, when it arrives in triage


We have 3 rotational shift peoples (APJ / EMEA / AMR)


How we can auto assign tickets according to shifts : Could you pls share the Automation rules steps (server / data center)

 

thanks

1 answer

1 accepted

2 votes
Answer accepted
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 2, 2023

Hi @Sampath For this first you need to 3 user groups based on or add members in three project role. Each group for each region and add those member in group based on their region. 

Now create an automation rule :- 

Issue Trigger >> Create Issue 

Add multiple If else Conditions based on member region or jira time >> {{issue.created.convertToTimeZone("America/Chicago").shortTime}}  

https://confluence.atlassian.com/automation/jira-smart-values-date-and-time-993924864.html

Action >> Assign issue in round-robin method. 

Screenshot 2023-07-02 160201.jpg

Sampath
Contributor
July 4, 2023

Hi @Vikrant Yadav 

 

Thanks for Sharing . Our JIRA Server is on AMR time zone set, could you pls share us according to below time zone. rule as you mentioned in screenshot

Our  shifts we are working like  IST time

6 AM -2 PM  APJ shift

2 PM -10 PM EMEA shift 

10 PM-6 AM AMR time

 

Thanks

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2023

@Sampath Based on IST time use Asia/Kolkata canonical ID

{{issue.created.convertToTimeZone("Asia/Kolkata").shortTime}} > 6:00 AM and {{issue.created.convertToTimeZone("Asia/Kolkata").shortTime}} < 2:00 PM

{{issue.created.convertToTimeZone("Asia/Kolkata").shortTime}} > 2:00 AM and {{issue.created.convertToTimeZone("Asia/Kolkata").shortTime}} < 10:00 PM

{{issue.created.convertToTimeZone("Asia/Kolkata").shortTime}} > 10:00 PM and {{issue.created.convertToTimeZone("Asia/Kolkata").shortTime}} < 6:00 AM

Sampath
Contributor
July 4, 2023

Hi @Vikrant Yadav 

 

Thanks for Sharing great ....is this can we use for JIRA server or JIRA cloud ? 

ours is JIRA/Server environment

 

Screenshot 2023-07-04 at 3.10.33 PM.png

Sampath
Contributor
July 4, 2023

Hi @Vikrant Yadav 

 

Above query can we use for JIRA/ Server

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2023

Hi @Sampath  Yes, It works for Jira DC projects automation as well. 

{{issue.created.convertToTimeZone("Asia/Kolkata").format("HH:mm")}}

Screenshot 2023-07-04 162010.jpg

Sampath
Contributor
July 4, 2023

Hi @Vikrant Yadav 

Thanks for great response i tried but assign issue not happening an din audit log shows succcess 

 

image.png

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2023

Hi @Sampath  If/else condition passed or failed in Audit Logs. What is showing ? 

Which condition passed ? 
Users added in the list ?

Screenshot 2023-07-04 180651.jpg

Sampath
Contributor
July 4, 2023

Hi @Vikrant Yadav 

PFA

image.pngimage.png

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2023

@Sampath  Issue not matched any of the condition. 

Your Smart value is incorrect  :- 

{{issue.created.convertToTimeZone("Asia/Kolkata").format("HH:mm")}}

 

HH should be in a caps

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2023

Kindly mark the solution as accepted, if the solution works for you. It helps others user as well. 

Sampath
Contributor
July 4, 2023

Hi @Vikrant Yadav 

 

It works . you Rock . thanks all wonderful support

 

for if else we need to have 2 condition i did for APj & EMEA but about AMR time we need to do another rule or in same rule can we add it?  which condition ? same condition can we use for one region? pls suggest 

Sampath
Contributor
July 4, 2023

image.png

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2023

Add two more else if condition for other 2 region use same time zone but different time stamps. 

Sampath
Contributor
July 4, 2023

Hi @Vikrant Yadav 

 

Sure i will check and update . thanks all for your wondeful support will response you once i checked AMR & APJ time zone 

 

Your Rock

 

Thanks

Like Vikrant Yadav likes this
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2023

@Sampath  Glad to hear I am able to help you! 

Thanks!

Sampath
Contributor
July 4, 2023

HI @Vikrant Yadav 

 

I am checking in AMR time ...now .. I have set for 22:00 but looks like I need to change as 10 PM to 6 AM

 

pls advise were I need to change this

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2023

Apply condition in Else if condition for AMR. 
In If condition, add two Advance compares . Check screenshot again which I shared above. 

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2023

Screenshot 2023-07-04 225021.jpg

Sampath
Contributor
July 5, 2023

Hi @Vikrant Yadav 

 

Thanks again keep response time to time. I never seen before. Thanks for your support

 

Audit log shows success with below error

if block

The following issues did not match the condition:

if/else block

The following issues did not match the condition:

if/else block

The following issues did not match the condition:
image.pngimage.png
APJ Time : 06:00 AM to 14:00 PM (06:00 AM to 2:00 PM as per in JIRA time from Indian)
EMEA Time : 14:00 PM to 22:00 PM (02:00 PM to 10:00 PM as per in JIRA time from Indian)
AMR Time : 22:00 PM to 06:00 AM (10:00 PM to 06:00 AM as per in JIRA time from Indian)
Sampath
Contributor
July 5, 2023

Hi @Vikrant Yadav 

Only AMR time zone not able assigning the issue rest APJ & EMEA assigned correctly

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 5, 2023

For AMR , no need to add condition, use Else , not Else if . 

Check Audit logs, try to test ticket in AMR time zone. 

Sampath
Contributor
July 5, 2023

Hi @Vikrant Yadav 

 

If i click compare condition it atuomatically goes to else ifimage.png

Sampath
Contributor
July 10, 2023

Hi @Vikrant Yadav 

 

Hope you doing well waiting for your response as well Thanks

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 10, 2023

Hi @Sampath  Click on Else >> Save ( no need add any conditon )>> Select Action 

Screenshot 2023-07-11 112553.jpg

Sampath
Contributor
July 10, 2023

Hi @Vikrant Yadav 

Thanks for back again to support and rock . 

 

Here i dont have the action in my automation rule PFA. I have only Add ConditionScreenshot 2023-07-11 at 11.35.09 AM.png

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2023

for AMR region create a new rule. I am not sure why it's not showing in your project automation. 

Sampath
Contributor
July 11, 2023

Hi @Vikrant Yadav 

 

noted with Thanks for your support let me check and update you the status

Like Vikrant Yadav likes this
Sampath
Contributor
July 12, 2023

Hi @Vikrant Yadav 

Here i have one more doubt, we have 3 region tickets. If tickets waiting for support according to APJ - send reminder to APJ agent via email and same EMEA & AMR , i have created below rule not sure if  it is correct pls check and advise thanks

 

image.png

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 12, 2023

No need to add Second IF condition, because you are sending email based on Region custom field. 

Sampath
Contributor
July 12, 2023

Hi @Vikrant Yadav 

 

Good morning .. thanks always for wonderful response and support,

Ji

 

My requirement is

 

If in ticket, region mentioned as APJ then it remind to IT agent 6 am to 2 pm

If in ticket, region mentioned as EMEA then it remind to IT agent 2 pm to 10 pm

If in ticket, region mentioned as AMR then it remind to IT agent 10 pm to 6 qm

Sampath
Contributor
July 12, 2023

Screenshot 2023-07-13 at 11.18.53 AM.png

Sampath
Contributor
July 13, 2023

Hi @Vikrant Yadav 

 

Hi Ji pls advise here

If in ticket, region mentioned as APJ then it remind to IT agent 6 am to 2 pm

If in ticket, region mentioned as EMEA then it remind to IT agent 2 pm to 10 pm

If in ticket, region mentioned as AMR then it remind to IT agent 10 pm to 6 qm

Sampath
Contributor
July 16, 2023

Hi @Vikrant Yadav 

 

Ji hope you doing good, looking for your response on below requirements, pls do the needful. thanks

If in ticket, region mentioned as APJ then it remind to IT agent 6 am to 2 pm

If in ticket, region mentioned as EMEA then it remind to IT agent 2 pm to 10 pm

If in ticket, region mentioned as AMR then it remind to IT agent 10 pm to 6 qm

Sampath
Contributor
July 17, 2023

Hi @Vikrant Yadav 

Ji looking for your positive response thanks for all your support

Sampath
Contributor
July 18, 2023

Hi @Vikrant Yadav 

Are you available now

Suggest an answer

Log in or Sign up to answer