automate: move jira issue to another state if lying more the 2 week in the same state

Ramaiah Pendli October 25, 2016

Hi,

  • Can we automate to bulk move all tickets in Awaiting inputs to Rejected status at the end of every 2 week if the tickets is in Awaiting inputs status for  2 weeks
  • Can we  automate bulk closing tickets in Rejected status end of every 2 weeks if the ticket is in Rejected status for 2 weeks
  • Can we trigger automated mail to reporter if it’s in awaiting input for a week 

1 answer

0 votes
Logan G Hawkes
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 26, 2016

For the bulk close and bulk move you could write a plugin and use the job scheduler to run it as a cron. There's a guide here. Another way to do would be to define a service in ScriptRunner that would call a groovy script every 2 weeks. There's an example here.

For the automated email, create a filter that searches for all issues that are in an "awaiting input" state (however you define that) whose status hasn't changed in 1 week and the assignee is currentUser(). Share the filter and subscribe all users to that filter with the caveat that if no issues are returned the mail shouldn't be sent. Since the filter will be run separately for each user, only users who have such an issue will get the nag mail.

Suggest an answer

Log in or Sign up to answer