JIRA issue routing based on time of issue creation

Hi:

We want to selectively route JIRA issues depending on the time of day. The application is a support group.

Between the hours of 0800 and 1800, one group/person/role gets assigned issues that are created in Project X; between 1800 and 0800, and on weekends, a different group/person/role gets assigned those issues.

What's the most elegant way to achieve this?

2 answers

2 votes

I'd remove the "assignee" field from the creation screen, and then write a listener that catches "issue created" events for that project, OR a post-function you can add to the "create" transition. Either way, the code would need to reassign them automatically.

I'd be strongly tempted to use the "script runner" plugin to do these as well - saves you writing a whole chunk of code/plugin yourself.

Usage of Scriped Custom Field (from the same link Script Runner that Nic gave), you can easily determine your zone, let's say you have A,B and C.

And for the people who are working on those zones, it is just a simple filter in their dashboard which gives them their tickets created in the time they are responsible for (Zone ~ "ZoneA").

//sample
if(issue.getCreated().getHours() > 8 )
{
	return "ZoneA";
}
else
{
	return "ZoneB";
}

https://studio.plugins.atlassian.com/wiki/display/GRV/Scripted+Fields

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 Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

196 views 4 8
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