I want to automatic unassign issues after 3 hours

Arnold Roa
Contributor
October 31, 2018

is this possible?

2 answers

2 votes
Alexey Matveev
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.
October 31, 2018

Hello,

You would need an add-on for it.

For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could write a script like this:

string jql;
jql = "project = TEST";
string[] keys = selectIssues(jql);
for(string key in keys){
string [] h = fieldHistory(%key%, "assignee");
if (size(h) > 0) {
date changeDate = parseDate("dd.MM.yyyy", h[0]);
interval diff = currentDate() - changeDate;
if (diff >= "3d") {
%key%.assignee = "";
}
}
}

Then you can schedule this script with the runJobByCron method:

https://confluence.cprime.io/display/SIL/runJobByCron

0 votes
Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2018

From historical experience unassigned issues don't get worked

Arnold Roa
Contributor
November 2, 2018

well.. our tickets takes 20 minutes to do, if someone assigns a ticket and end his shift without anyone work on it until the next day when his shift starts.

We offer 24/7 service, our people do what is unassigned all the time.

 

So it's a different context.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events