If ticket is not processed by the assignee for 7 days,ticket should go back to the previous assignee

Archana April 25, 2019

Hi All

We have one scenario where user may not know that ticket has been assigned to him. So i want to have one option in workflow like if the user is not handling the ticket for 7 days, then the ticket should return or come to the previous assignee. We can have notifictaion or filter option where mails can be triggered(we donot need this) . But i want ticket to be  automatically assigned to the previous assignee.

can anybody help me ?

 

Thanks

1 answer

0 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.
April 25, 2019

Hello,

You would need an app for it. There are multiple apps available: Power Scripts, ScriptRunner.

If you want to use the Power Scripts app, then you could write a job with a code like this:

string[] issueKeys = selectIssues("project = prj and not status changed after -7d");

for (string k in issueKeys) {

   string [] h = fieldHistory(k, "assignee");

   string a; 

   if(isNotNull(h[1])) {

    a = h[1];

  }else {

    a = h[3];

  }

    k.assignee = a;

}

Suggest an answer

Log in or Sign up to answer