Forums

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

How to assign issues on a daily basis?

Sagarika S April 28, 2020

Hi,

I wanted to create an automation in Jira Service Desk that lets me assign issues to a particular agent on a daily basis. For example, Agent A gets assigned all email requests that come on Monday. Agent B gets assigned the requests on Tuesday and so on. 

I do not wish to use any add on or plugin for this purpose. I've tried achieving the same using JQL but I think I am not using the correct queries. 

As shown in the images I've shared, I am using the query : created >= startOfWeek() and created <= endOfDay(). This, according to me defines issues created on Monday. Similarly,  created >= startOfWeek(1d) and created <= endOfDay() for issues created on Tuesday and so on  ( I've configured the week to start from Monday )


Could you please help me achieve this using JQL, and let me know if I am doing something wrong here?

Thanks !

1 answer

1 accepted

0 votes
Answer accepted
Michael Wohlgemuth
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.
April 29, 2020

Greetings,

regarding your query, try:

Monday

created >= startOfWeek(1d) and created <= startOfWeek(2d)

Tuesday

created >= startOfWeek(2d) and created <= startOfWeek(3d)

and so on.

Hope this helps.

regards

Sagarika S April 30, 2020

Hey Michael,

Yes, it solved the problem. Thanks a lot!

Regards

Like Michael Wohlgemuth likes this
Michael Wohlgemuth
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.
April 30, 2020

Thanks for the feedback :)

If you could consider marking the answer as accepted, that would be awesome!

Have a great day!

regards

Sagarika S April 30, 2020

Hey Michael,

Done. Thanks once again! :)

Regards

Myleen Van Es November 20, 2023

How and where can I set what the start of the week is. I've now used just: 

created >= startOfWeek(1d) and created <= startOfWeek(2d)

for monday but the issues remain unassigned. 

 

Thank you 

Michael Wohlgemuth
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.
January 2, 2024
created >= startOfWeek() and created <= startOfWeek(1d)

That could work perhaps, for mondays.

 

 

 

 

 

Tho nothing likes to work on/for mondays. So keep that in mind :D

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events