Forums

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

Auto-solved issues if client not approbed it

Pedro Román October 22, 2018

How could I make a task in a state automatically go to ready when a period of time passes?

2 answers

1 vote
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 22, 2018

Hello,

You would need a plugin 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 create a script like this:

string jql;
jql = "project = PRJ AND create > -20d and status <> Closed')";
string[] issueKeys = selectIssues(jql);
for(number i = 0; i < size(issueKey); i = i + 1){
   autotransition(121, issueKeys[i]);
}

This script will find all issues, which were created 20days ago and still are not in the Closed status. Then it will try to transition these issues, using the 121 transition id. You should find the correct transition ids to transition required issues.

Then you can schedule this script with the runJobByCron method:

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

0 votes
Elifcan Cakmak
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 22, 2018

Hello,

You can use the automation feature of Service Desk, if it's a service desk project as you tagged.

Selection_099.png

Regards,

Suggest an answer

Log in or Sign up to answer